Documentation ¶
Index ¶
- type MetadataStoreServer
- func (m *MetadataStoreServer) AgentHeartbeat(ctx context.Context, request *pb.Heartbeat) (*emptypb.Empty, error)
- func (m *MetadataStoreServer) DeregisterAgent(ctx context.Context, request *pb.DeregisterAgentRequest) (*pb.DeregisterAgentResponse, error)
- func (m *MetadataStoreServer) GetMetadata(ctx context.Context, request *pb.GetMetadataRequest) (*pb.GetMetadataResponse, error)
- func (m *MetadataStoreServer) RegisterAgent(ctx context.Context, request *pb.RegisterAgentRequest) (*pb.RegisterAgentResponse, error)
- type MetadataStoreServerOption
- func WithMetadataStoreServerAgentAliveThreshold(agentAliveThreshold time.Duration) MetadataStoreServerOption
- func WithMetadataStoreServerClusterID(clusterID string) MetadataStoreServerOption
- func WithMetadataStoreServerDatastore(datastore metadatastore.Datastore) MetadataStoreServerOption
- func WithMetadataStoreServerUUIDService(uuidService metadatastore.UUIDService) MetadataStoreServerOption
- type Server
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataStoreServer ¶
type MetadataStoreServer struct { pb.UnimplementedMetadataStoreServer // contains filtered or unexported fields }
func NewMetadataStoreServer ¶
func NewMetadataStoreServer(opt ...MetadataStoreServerOption) (*MetadataStoreServer, error)
func (*MetadataStoreServer) AgentHeartbeat ¶
func (*MetadataStoreServer) DeregisterAgent ¶
func (m *MetadataStoreServer) DeregisterAgent(ctx context.Context, request *pb.DeregisterAgentRequest) (*pb.DeregisterAgentResponse, error)
func (*MetadataStoreServer) GetMetadata ¶
func (m *MetadataStoreServer) GetMetadata(ctx context.Context, request *pb.GetMetadataRequest) (*pb.GetMetadataResponse, error)
func (*MetadataStoreServer) RegisterAgent ¶
func (m *MetadataStoreServer) RegisterAgent(ctx context.Context, request *pb.RegisterAgentRequest) (*pb.RegisterAgentResponse, error)
type MetadataStoreServerOption ¶
type MetadataStoreServerOption interface {
// contains filtered or unexported methods
}
func WithMetadataStoreServerAgentAliveThreshold ¶
func WithMetadataStoreServerAgentAliveThreshold(agentAliveThreshold time.Duration) MetadataStoreServerOption
func WithMetadataStoreServerClusterID ¶
func WithMetadataStoreServerClusterID(clusterID string) MetadataStoreServerOption
func WithMetadataStoreServerDatastore ¶
func WithMetadataStoreServerDatastore(datastore metadatastore.Datastore) MetadataStoreServerOption
func WithMetadataStoreServerUUIDService ¶
func WithMetadataStoreServerUUIDService(uuidService metadatastore.UUIDService) MetadataStoreServerOption
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(opt ...ServerOption) (*Server, error)
func (*Server) GracefulStop ¶
func (s *Server) GracefulStop()
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
func WithServerMetadataStoreServer ¶
func WithServerMetadataStoreServer(mds pb.MetadataStoreServer) ServerOption
func WithServerReflection ¶
func WithServerReflection() ServerOption
func WithoutServerReflection ¶
func WithoutServerReflection() ServerOption
Click to show internal directories.
Click to hide internal directories.