Documentation
¶
Index ¶
- func DeferredPublish(name string, value Map, delay time.Duration) error
- func DeferredPublishTo(conn, name string, value Map, delay time.Duration) error
- func Publish(name string, values ...Map) error
- func PublishTo(conn, name string, values ...Map) error
- type Config
- type Configs
- type Connection
- type Context
- func (ctx *Context) Attempts() int
- func (ctx *Context) Context() context.Context
- func (ctx *Context) Denied(res Res)
- func (ctx *Context) Done() <-chan struct{}
- func (ctx *Context) Error(res Res)
- func (ctx *Context) Failed(res Res)
- func (ctx *Context) Final() bool
- func (ctx *Context) Finish()
- func (ctx *Context) Found()
- func (ctx *Context) Next()
- func (ctx *Context) Retry(delays ...time.Duration)
- type Declare
- type Delay
- type Driver
- type Filter
- type Handler
- type Instance
- type Module
- func (m *Module) Close()
- func (m *Module) Config(global Map)
- func (m *Module) Open()
- func (m *Module) Register(name string, value Any)
- func (m *Module) RegisterConfig(name string, cfg Config)
- func (m *Module) RegisterConfigs(configs Configs)
- func (m *Module) RegisterDeclare(name string, cfg Declare)
- func (m *Module) RegisterDriver(name string, driver Driver)
- func (m *Module) RegisterFilter(name string, cfg Filter)
- func (m *Module) RegisterHandler(name string, cfg Handler)
- func (m *Module) RegisterQueue(name string, cfg Queue)
- func (m *Module) RegisterQueues(prefix string, queues Queues)
- func (m *Module) Setup()
- func (m *Module) Start()
- func (m *Module) Stop()
- type Queue
- type Queues
- type Request
- type Response
- type Retry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeferredPublishTo ¶
Types ¶
type Connection ¶ added in v0.7.0
type Context ¶
type Driver ¶
type Driver interface {
Connect(*Instance) (Connection, error)
}
type Instance ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func (*Module) RegisterConfig ¶ added in v0.7.0
func (*Module) RegisterConfigs ¶ added in v0.7.0
func (*Module) RegisterDeclare ¶ added in v0.7.0
func (*Module) RegisterDriver ¶ added in v0.7.0
func (*Module) RegisterFilter ¶ added in v0.7.0
func (*Module) RegisterHandler ¶ added in v0.7.0
func (*Module) RegisterQueue ¶ added in v0.7.0
func (*Module) RegisterQueues ¶ added in v0.7.0
type Queue ¶
type Queue struct {
Alias []string `json:"alias"`
Name string `json:"name"`
Desc string `json:"desc"`
Nullable bool `json:"-"`
Args Vars `json:"args"`
Setting Map `json:"setting"`
Action ctxFunc `json:"-"`
Actions []ctxFunc `json:"-"`
Found ctxFunc `json:"-"`
Error ctxFunc `json:"-"`
Failed ctxFunc `json:"-"`
Denied ctxFunc `json:"-"`
Connect string `json:"connect"`
Thread int `json:"thread"`
Retry Retry `json:"retry"`
}
func (Queue) RegistryComponent ¶ added in v0.7.0
type Queues ¶ added in v0.7.0
func (Queues) RegistryComponent ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.