Documentation
¶
Index ¶
- type AdapterConnector
- func (ac *AdapterConnector) BatchPublish(requests []*Request) (bool, int32, error)
- func (ac *AdapterConnector) Connect(host string, options *core.Options) error
- func (ac *AdapterConnector) Disconnect() error
- func (ac *AdapterConnector) Publish(eventName string, payload []byte, meta map[string]interface{}) error
- func (ac *AdapterConnector) Register(component string, adapterID string, name string) error
- type EventBus
- type EventBusHandler
- type EventBusOptions
- type Options
- type Request
- type RequestBuffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterConnector ¶
type AdapterConnector struct {
// contains filtered or unexported fields
}
func NewAdapterConnector ¶
func NewAdapterConnector(options *Options) *AdapterConnector
func NewAdapterConnectorWithClient ¶ added in v0.0.6
func NewAdapterConnectorWithClient(client *core.Client, options *Options) *AdapterConnector
func (*AdapterConnector) BatchPublish ¶ added in v0.0.2
func (ac *AdapterConnector) BatchPublish(requests []*Request) (bool, int32, error)
func (*AdapterConnector) Connect ¶
func (ac *AdapterConnector) Connect(host string, options *core.Options) error
func (*AdapterConnector) Disconnect ¶
func (ac *AdapterConnector) Disconnect() error
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
func NewEventBus ¶
func NewEventBus(host string, handler EventBusHandler, options EventBusOptions) *EventBus
func (*EventBus) GetConnection ¶
func (*EventBus) ReconnectHandler ¶
type EventBusHandler ¶
type EventBusOptions ¶
type Options ¶
type Options struct { BatchSize int PingInterval time.Duration MaxPingsOutstanding int MaxReconnects int ReconnectHandler func() DisconnectHandler func() Verbose bool }
func NewOptions ¶
func NewOptions() *Options
type RequestBuffer ¶ added in v0.0.2
type RequestBuffer struct {
// contains filtered or unexported fields
}
func NewRequestBuffer ¶ added in v0.0.2
func NewRequestBuffer(size int) *RequestBuffer
func (*RequestBuffer) Flush ¶ added in v0.0.2
func (rb *RequestBuffer) Flush() error
func (*RequestBuffer) Push ¶ added in v0.0.2
func (rb *RequestBuffer) Push(req *Request)
func (*RequestBuffer) SetSize ¶ added in v0.0.2
func (rb *RequestBuffer) SetSize(size int)
Click to show internal directories.
Click to hide internal directories.