Documentation
¶
Index ¶
- type AdminService
- type AdminServiceImpl
- func (a *AdminServiceImpl) BulkTriggerWorkflow(ctx context.Context, req *contracts.BulkTriggerWorkflowRequest) (*contracts.BulkTriggerWorkflowResponse, error)
- func (a *AdminServiceImpl) Cleanup() error
- func (a *AdminServiceImpl) PutRateLimit(ctx context.Context, req *contracts.PutRateLimitRequest) (*contracts.PutRateLimitResponse, error)
- func (a *AdminServiceImpl) PutWorkflow(ctx context.Context, req *contracts.PutWorkflowRequest) (*contracts.WorkflowVersion, error)
- func (a *AdminServiceImpl) ScheduleWorkflow(ctx context.Context, req *contracts.ScheduleWorkflowRequest) (*contracts.WorkflowVersion, error)
- func (a *AdminServiceImpl) TriggerWorkflow(ctx context.Context, req *contracts.TriggerWorkflowRequest) (*contracts.TriggerWorkflowResponse, error)
- type AdminServiceOpt
- func WithGrpcTriggerSlots(slots int) AdminServiceOpt
- func WithGrpcTriggersEnabled(enabled bool) AdminServiceOpt
- func WithLocalDispatcher(d *dispatcher.DispatcherImpl) AdminServiceOpt
- func WithLocalScheduler(s *scheduler.Scheduler) AdminServiceOpt
- func WithLogger(l *zerolog.Logger) AdminServiceOpt
- func WithMessageQueueV1(mq msgqueue.MessageQueue) AdminServiceOpt
- func WithOptimisticSchedulingEnabled(enabled bool) AdminServiceOpt
- func WithRepositoryV1(r v1.Repository) AdminServiceOpt
- func WithValidator(v validator.Validator) AdminServiceOpt
- type AdminServiceOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminService ¶
type AdminService interface {
contracts.WorkflowServiceServer
Cleanup() error
}
func NewAdminService ¶
func NewAdminService(fs ...AdminServiceOpt) (AdminService, error)
type AdminServiceImpl ¶
type AdminServiceImpl struct {
contracts.UnimplementedWorkflowServiceServer
// contains filtered or unexported fields
}
func (*AdminServiceImpl) BulkTriggerWorkflow ¶
func (a *AdminServiceImpl) BulkTriggerWorkflow(ctx context.Context, req *contracts.BulkTriggerWorkflowRequest) (*contracts.BulkTriggerWorkflowResponse, error)
func (*AdminServiceImpl) Cleanup ¶ added in v0.78.0
func (a *AdminServiceImpl) Cleanup() error
Cleanup stops the pubBuffer goroutines if they exist
func (*AdminServiceImpl) PutRateLimit ¶
func (a *AdminServiceImpl) PutRateLimit(ctx context.Context, req *contracts.PutRateLimitRequest) (*contracts.PutRateLimitResponse, error)
func (*AdminServiceImpl) PutWorkflow ¶
func (a *AdminServiceImpl) PutWorkflow(ctx context.Context, req *contracts.PutWorkflowRequest) (*contracts.WorkflowVersion, error)
func (*AdminServiceImpl) ScheduleWorkflow ¶
func (a *AdminServiceImpl) ScheduleWorkflow(ctx context.Context, req *contracts.ScheduleWorkflowRequest) (*contracts.WorkflowVersion, error)
func (*AdminServiceImpl) TriggerWorkflow ¶
func (a *AdminServiceImpl) TriggerWorkflow(ctx context.Context, req *contracts.TriggerWorkflowRequest) (*contracts.TriggerWorkflowResponse, error)
type AdminServiceOpt ¶
type AdminServiceOpt func(*AdminServiceOpts)
func WithGrpcTriggerSlots ¶ added in v0.78.0
func WithGrpcTriggerSlots(slots int) AdminServiceOpt
func WithGrpcTriggersEnabled ¶ added in v0.78.0
func WithGrpcTriggersEnabled(enabled bool) AdminServiceOpt
func WithLocalDispatcher ¶ added in v0.78.0
func WithLocalDispatcher(d *dispatcher.DispatcherImpl) AdminServiceOpt
func WithLocalScheduler ¶ added in v0.78.0
func WithLocalScheduler(s *scheduler.Scheduler) AdminServiceOpt
func WithLogger ¶ added in v0.78.0
func WithLogger(l *zerolog.Logger) AdminServiceOpt
func WithMessageQueueV1 ¶
func WithMessageQueueV1(mq msgqueue.MessageQueue) AdminServiceOpt
func WithOptimisticSchedulingEnabled ¶ added in v0.78.0
func WithOptimisticSchedulingEnabled(enabled bool) AdminServiceOpt
func WithRepositoryV1 ¶
func WithRepositoryV1(r v1.Repository) AdminServiceOpt
func WithValidator ¶
func WithValidator(v validator.Validator) AdminServiceOpt
type AdminServiceOpts ¶
type AdminServiceOpts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.