grpc_agent

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewValidator

func NewValidator() *validator.Validate

Types

type AuthToken

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

func NewAuthToken

func NewAuthToken(token string, secure bool) *AuthToken

func (*AuthToken) GetRequestMetadata

func (a *AuthToken) GetRequestMetadata(context.Context, ...string) (map[string]string, error)

func (*AuthToken) RequireTransportSecurity

func (a *AuthToken) RequireTransportSecurity() bool

type CreateDatabaseRequest

type CreateDatabaseRequest struct {
	*proto.CreateDatabaseJob
	JobId uuid.UUID
}

func NewCreateDatabaseRequest

func NewCreateDatabaseRequest(job *proto.DbJob) *CreateDatabaseRequest

func (*CreateDatabaseRequest) Process

type DbStatusSender

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

func (*DbStatusSender) Handle

func (s *DbStatusSender) Handle(msg server.NamedElement) error

func (*DbStatusSender) Init

func (s *DbStatusSender) Init(setter server.GlobalSetter) error

func (*DbStatusSender) PostInit

func (s *DbStatusSender) PostInit(getter server.GlobalGetter) error

type GrpcAgentHandler

type GrpcAgentHandler struct {
	DbApi *db.DbApi

	GrpcClient proto.DbJobSvcClient
	QuitCtx    context.Context

	JobProducer server.Producer
	Validator   *validator.Validate
}

func NewGrpcAgentHandler

func NewGrpcAgentHandler(dbApi *db.DbApi, grpcClient proto.DbJobSvcClient, jobProducer server.Producer, quitCtx context.Context) *GrpcAgentHandler

type GrpcAgentServer

type GrpcAgentServer struct {
	GrpcConfig *config.GrpcClientConfig
	GrpcClient proto.DbJobSvcClient

	QuitCtx context.Context

	DbApi *db.DbApi
	// contains filtered or unexported fields
}

func NewGrpcAgentServer

func NewGrpcAgentServer(grpcConfig *config.GrpcClientConfig, quitCtx context.Context) *GrpcAgentServer

func (*GrpcAgentServer) Init

func (s *GrpcAgentServer) Init(setter server.GlobalSetter) error

func (*GrpcAgentServer) PostInit

func (s *GrpcAgentServer) PostInit(getter server.GlobalGetter) error

func (*GrpcAgentServer) Run

func (s *GrpcAgentServer) Run()

func (*GrpcAgentServer) Shutdown

func (s *GrpcAgentServer) Shutdown(ctx context.Context)

type MigrateOutDatabaseRequest

type MigrateOutDatabaseRequest struct {
	*proto.MigrateOutDatabaseJob
	JobId uuid.UUID
}

func NewMigrateOutDatabaseRequest

func NewMigrateOutDatabaseRequest(task *proto.DbJob) *MigrateOutDatabaseRequest

func (*MigrateOutDatabaseRequest) Process

Jump to

Keyboard shortcuts

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