Documentation ¶
Index ¶
- type Application
- type Backend
- type Bus
- type Components
- func (cs *Components) Add(c components.Component)
- func (cs *Components) Application() components.Application
- func (cs *Components) Bus() components.Bus
- func (cs *Components) Config() components.Config
- func (cs *Components) Crypto() components.Crypto
- func (cs *Components) Leader() components.Leader
- func (cs *Components) Logger() logger.Logger
- func (cs *Components) Model() components.Model
- func (cs *Components) Router() components.Router
- type Config
- type Crypto
- type Leader
- type Manager
- type Metrics
- type Model
- type Router
- type Scheduler
- type Server
- type Workers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { AcquireLock(name, owner string, duration time.Duration) (bool, error) ReleaseLock(name, owner string) error InsertJob(job *jw.Job) (bool, error) NextJob() (*jw.Job, error) UpdateJob(job *jw.Job) error Workflow(id string, mustExist bool) (*jw.Workflow, error) InsertWorkflow(wf *jw.Workflow, job *jw.Job) error UpdateWorkflow(wf *jw.Workflow) error Clean() (int, int, error) }
Backend AFAIRE.
type Components ¶
type Components struct { CApplication Application CBackend Backend CBus Bus CConfig Config CCrypto Crypto CLeader Leader CLogger logger.Logger CManager Manager CMetrics Metrics CModel Model CRouter Router CScheduler Scheduler CServer Server CWorkers Workers // contains filtered or unexported fields }
Components AFAIRE.
func (*Components) Application ¶
func (cs *Components) Application() components.Application
Application AFAIRE.
Click to show internal directories.
Click to hide internal directories.