servers

package
v0.0.0-...-3e5077d Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthInterceptor

func GetAuthInterceptor() func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func NewMagnetarGrpcServer

func NewMagnetarGrpcServer(nodeService services.NodeService, labelService services.LabelService) (api.MagnetarServer, error)

Types

type MagnetarGrpcServer

type MagnetarGrpcServer struct {
	api.UnimplementedMagnetarServer
	// contains filtered or unexported fields
}

func (*MagnetarGrpcServer) ClaimOwnership

func (*MagnetarGrpcServer) DeleteLabel

func (*MagnetarGrpcServer) GetFromNodePool

func (*MagnetarGrpcServer) GetFromOrg

func (*MagnetarGrpcServer) ListNodePool

func (*MagnetarGrpcServer) ListOrgOwnedNodes

func (*MagnetarGrpcServer) PutBoolLabel

func (m *MagnetarGrpcServer) PutBoolLabel(ctx context.Context, req *api.PutBoolLabelReq) (*api.PutLabelResp, error)

func (*MagnetarGrpcServer) PutFloat64Label

func (m *MagnetarGrpcServer) PutFloat64Label(ctx context.Context, req *api.PutFloat64LabelReq) (*api.PutLabelResp, error)

func (*MagnetarGrpcServer) PutStringLabel

func (m *MagnetarGrpcServer) PutStringLabel(ctx context.Context, req *api.PutStringLabelReq) (*api.PutLabelResp, error)

func (*MagnetarGrpcServer) QueryNodePool

func (*MagnetarGrpcServer) QueryOrgOwnedNodes

type RegistrationAsyncServer

type RegistrationAsyncServer struct {
	// contains filtered or unexported fields
}

func NewRegistrationAsyncServer

func NewRegistrationAsyncServer(subscriber messaging.Subscriber, publisher messaging.Publisher, service services.RegistrationService) (*RegistrationAsyncServer, error)

func (*RegistrationAsyncServer) GracefulStop

func (n *RegistrationAsyncServer) GracefulStop()

func (*RegistrationAsyncServer) Serve

func (n *RegistrationAsyncServer) Serve() error

Jump to

Keyboard shortcuts

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