Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Name() string Run() Shutdown() ReplaceTemplate(template string) string AddRoute(subscribeTopic string, messageHandler MessageHandler) }
type ClientPool ¶
type ClientPool struct {
// contains filtered or unexported fields
}
func RunPool ¶
func RunPool() (pool *ClientPool)
func (*ClientPool) AddClient ¶
func (p *ClientPool) AddClient(client Client)
func (*ClientPool) GetClientsByNames ¶
func (p *ClientPool) GetClientsByNames(clientNames []string) (clients []Client)
func (*ClientPool) RemoveClient ¶
func (p *ClientPool) RemoveClient(client Client)
func (*ClientPool) RunClients ¶
func (p *ClientPool) RunClients()
func (*ClientPool) Shutdown ¶
func (p *ClientPool) Shutdown()
type ClientStruct ¶
type ClientStruct struct {
// contains filtered or unexported fields
}
func (*ClientStruct) AddRoute ¶
func (c *ClientStruct) AddRoute(subscribeTopic string, messageHandler MessageHandler)
func (*ClientStruct) AvailabilityEnabled ¶
func (c *ClientStruct) AvailabilityEnabled() bool
func (*ClientStruct) GetAvailabilityTopic ¶
func (c *ClientStruct) GetAvailabilityTopic() string
func (*ClientStruct) Name ¶
func (c *ClientStruct) Name() string
func (*ClientStruct) ReplaceTemplate ¶
func (c *ClientStruct) ReplaceTemplate(template string) string
type ClientV3 ¶
type ClientV3 struct { ClientStruct // contains filtered or unexported fields }
func CreateV3 ¶
func CreateV3(cfg Config, statistics Statistics) (client *ClientV3)
type ClientV5 ¶
type ClientV5 struct { ClientStruct // contains filtered or unexported fields }
func CreateV5 ¶
func CreateV5(cfg Config, statistics Statistics) (client *ClientV5)
type MessageHandler ¶
type MessageHandler func(Message)
type Statistics ¶
type Statistics interface {
IncrementOne(module, name, field string)
}
Click to show internal directories.
Click to hide internal directories.