Documentation ¶
Index ¶
- type Config
- type Connection
- type HandlerFn
- type Log
- type NopLogger
- func (n NopLogger) Debug(s string)
- func (n NopLogger) Debugf(s string, i ...interface{})
- func (n NopLogger) Error(s string)
- func (n NopLogger) Errorf(s string, i ...interface{})
- func (n NopLogger) Fatal(s string)
- func (n NopLogger) Fatalf(s string, i ...interface{})
- func (n NopLogger) Info(s string)
- func (n NopLogger) Infof(s string, i ...interface{})
- func (n NopLogger) Warn(s string)
- func (n NopLogger) Warnf(s string, i ...interface{})
- type Publisher
- type Setup
- type TypeTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection is a wrapper around the actual kubemq.Connection
type Log ¶
type Log interface { Debug(string) Info(string) Warn(string) Error(string) Fatal(string) Debugf(string, ...interface{}) Infof(string, ...interface{}) Warnf(string, ...interface{}) Errorf(string, ...interface{}) Fatalf(string, ...interface{}) }
Log represents the API for a logger
type NopLogger ¶
type NopLogger struct{}
NopLogger ignores all function calls
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher is used to send messages
type Setup ¶
type Setup func(conn *Connection) error
Setup is a setup function that takes a Connection and configures it
func NewWorkQueue ¶
NewWorkQueue creates a new work queue. A Publisher is used to add work to the queue and the HandlerFn processes work (incoming messages) The TypeTag splice is used to determine which events are possible to send and process by this work queue
Click to show internal directories.
Click to hide internal directories.