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 (*AuthToken) GetRequestMetadata ¶
func (*AuthToken) RequireTransportSecurity ¶
type CreateDatabaseRequest ¶
type CreateDatabaseRequest struct { *proto.CreateDatabaseJob JobId uuid.UUID }
func NewCreateDatabaseRequest ¶
func NewCreateDatabaseRequest(job *proto.DbJob) *CreateDatabaseRequest
func (*CreateDatabaseRequest) Process ¶
func (r *CreateDatabaseRequest) Process(h *GrpcAgentHandler) error
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 ¶
func (r *MigrateOutDatabaseRequest) Process(h *GrpcAgentHandler) error
Click to show internal directories.
Click to hide internal directories.