Documentation ¶
Index ¶
- type Listenable
- type Message
- type MessageOptions
- type OnDone
- type Options
- type Runnable
- type Worker
- func (w *Worker) Close() error
- func (w *Worker) HandleSignals()
- func (w *Worker) On(c astibob.DispatchConditions, h astibob.MessageHandler)
- func (w *Worker) RegisterListenables(ls ...Listenable)
- func (w *Worker) RegisterRunnables(rs ...Runnable)
- func (w *Worker) RegisterToIndex()
- func (w *Worker) SendMessage(o MessageOptions) (err error)
- func (w *Worker) Serve()
- func (w *Worker) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listenable ¶
type MessageOptions ¶
type Options ¶
type Options struct { Index astibob.ServerOptions `toml:"index"` Server astibob.ServerOptions `toml:"server"` }
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) On ¶
func (w *Worker) On(c astibob.DispatchConditions, h astibob.MessageHandler)
On makes sure to handle messages with specific conditions
func (*Worker) RegisterListenables ¶
func (w *Worker) RegisterListenables(ls ...Listenable)
func (*Worker) RegisterRunnables ¶
func (*Worker) RegisterToIndex ¶
func (w *Worker) RegisterToIndex()
Register registers the worker to the index
func (*Worker) SendMessage ¶
func (w *Worker) SendMessage(o MessageOptions) (err error)
Click to show internal directories.
Click to hide internal directories.