mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-10 00:27:02 +02:00
21 lines
533 B
Go
21 lines
533 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
//go:build !enterprise
|
|
|
|
package plugin
|
|
|
|
import (
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
"github.com/hashicorp/vault/sdk/plugin/pb"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
// registerSystemViewServer (Vault Community edition) registers the SystemView server
|
|
// to the gRPC service registrar
|
|
func registerSystemViewServer(s *grpc.Server, sysView logical.SystemView, _ *logical.BackendConfig) {
|
|
pb.RegisterSystemViewServer(s, &gRPCSystemViewServer{
|
|
impl: sysView,
|
|
})
|
|
}
|