grpc

package
v0.0.0-...-0303aaf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 (m *MetadataStoreServer) AgentHeartbeat(ctx context.Context, request *pb.Heartbeat) (*emptypb.Empty, error)

func (*MetadataStoreServer) DeregisterAgent

func (*MetadataStoreServer) GetMetadata

func (*MetadataStoreServer) RegisterAgent

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()

func (*Server) Serve

func (s *Server) Serve(lis net.Listener) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL