Documentation ¶
Index ¶
- Constants
- Variables
- type Cmd
- type CmdCode
- type CmdPropagation
- type Connector
- func (cn *Connector) ConnectTo(l Link) error
- func (cn *Connector) ExecCmd(cmd *Cmd) error
- func (cn *Connector) GetMsgCh() chan *Message
- func (cn *Connector) LinkTo([]Link) error
- func (cn *Connector) Recv(msg *Message) error
- func (cn *Connector) RouteTo(map[string]Link) error
- func (cn *Connector) Send(msg *Message) error
- func (cn *Connector) String() string
- type Link
- type Message
- func (m *Message) AckContinue() error
- func (m *Message) AckDone() error
- func (m *Message) AckFailed() error
- func (m *Message) AckInvalid() error
- func (m *Message) AckPartialSend() error
- func (m *Message) AckThrottled() error
- func (m *Message) AckTimedOut() error
- func (m *Message) AckUnroutable() error
- func (m *Message) BumpAttempts() error
- func (m *Message) GetAckCh() chan MsgStatus
- func (m *Message) GetAttempts() uint32
- func (m *Message) GetMeta(key string) (interface{}, bool)
- func (m *Message) GetMetaAll() map[string]interface{}
- func (m *Message) GetMetaOrDef(key string, def interface{}) (interface{}, bool)
- func (m *Message) SetMeta(key string, val interface{})
- func (m *Message) SetMetaAll(extMeta map[string]interface{})
- func (m *Message) UnsetMeta(key string) (interface{}, bool)
- func (m *Message) UnsetMetaAll() map[string]interface{}
- type MsgMeta
- type MsgStatus
- type Params
- type RoutingFunc
Constants ¶
View Source
const ( CmdPpgtBtmUp = iota CmdPpgtTopDwn )
Variables ¶
View Source
var ( ErrMsgPartialSend = fmt.Errorf("Partial message send") ErrMsgInvalid = fmt.Errorf("Invalid message format/payload") ErrMsgFailed = fmt.Errorf("Failed message send") ErrMsgTimedOut = fmt.Errorf("Message send timeout") ErrMsgUnroutable = fmt.Errorf("Unroutable message") ErrMsgThrottled = fmt.Errorf("Message throttled") )
Functions ¶
This section is empty.
Types ¶
type CmdPropagation ¶
type CmdPropagation uint8
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func NewConnector ¶
func NewConnector() *Connector
type Message ¶
type Message struct { Payload []byte // contains filtered or unexported fields }
func NewMessage ¶
func NewMessageWithAckCh ¶
func NewMessageWithMeta ¶ added in v0.0.2
func (*Message) AckContinue ¶
func (*Message) AckInvalid ¶
func (*Message) AckPartialSend ¶
func (*Message) AckThrottled ¶
func (*Message) AckTimedOut ¶
func (*Message) AckUnroutable ¶
func (*Message) BumpAttempts ¶
func (*Message) GetAttempts ¶
func (*Message) GetMetaAll ¶ added in v0.0.2
func (*Message) GetMetaOrDef ¶ added in v0.0.2
func (*Message) SetMetaAll ¶ added in v0.0.2
func (*Message) UnsetMetaAll ¶ added in v0.0.2
type RoutingFunc ¶
Click to show internal directories.
Click to hide internal directories.