Documentation ¶
Index ¶
- func InitClient(cliName, version string, registry *EtcdRegistry, fn func(client.Client))
- func InitServer(name, version string, registry *EtcdRegistry, fn func(s server.Server))
- func LogClientWrap(c client.Client) client.Client
- func LogWrapper(fn server.HandlerFunc) server.HandlerFunc
- type Broker
- type EtcdRegistry
- type KafkaBroker
- type MqttBroker
- type NsqBroker
- type RedisBroker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
func InitClient(cliName, version string, registry *EtcdRegistry, fn func(client.Client))
func InitServer ¶
func InitServer(name, version string, registry *EtcdRegistry, fn func(s server.Server))
func LogWrapper ¶
func LogWrapper(fn server.HandlerFunc) server.HandlerFunc
Types ¶
type EtcdRegistry ¶
type EtcdRegistry struct {
Addrs []string
}
func (*EtcdRegistry) Address ¶
func (e *EtcdRegistry) Address() []string
type KafkaBroker ¶
type KafkaBroker struct {
Addrs []string
}
func (*KafkaBroker) Address ¶
func (k *KafkaBroker) Address() []string
type MqttBroker ¶
type MqttBroker struct {
Addrs []string
}
func (*MqttBroker) Address ¶
func (m *MqttBroker) Address() []string
type RedisBroker ¶
type RedisBroker struct {
Addrs []string
}
func (*RedisBroker) Address ¶
func (r *RedisBroker) Address() []string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.