Documentation ¶
Index ¶
- Variables
- 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) GetEndpoint() (*core.Endpoint, error)
- func (ac *AdapterConnector) Publish(eventName string, payload []byte, meta map[string]interface{}) error
- func (ac *AdapterConnector) PublishComplete() <-chan struct{}
- func (ac *AdapterConnector) PublishPending() int
- func (ac *AdapterConnector) Register(component string, adapterID string, name string) error
- func (ac *AdapterConnector) Release()
- type EventBus
- type EventBusHandler
- type EventBusOptions
- type Options
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidPacket = errors.New("adapter: invalid packet")
)
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
func (*AdapterConnector) GetEndpoint ¶ added in v0.0.18
func (ac *AdapterConnector) GetEndpoint() (*core.Endpoint, error)
func (*AdapterConnector) Publish ¶
func (ac *AdapterConnector) Publish(eventName string, payload []byte, meta map[string]interface{}) error
func (*AdapterConnector) PublishComplete ¶ added in v1.0.7
func (ac *AdapterConnector) PublishComplete() <-chan struct{}
func (*AdapterConnector) PublishPending ¶ added in v1.0.7
func (ac *AdapterConnector) PublishPending() int
func (*AdapterConnector) Register ¶ added in v0.0.7
func (ac *AdapterConnector) Register(component string, adapterID string, name string) error
func (*AdapterConnector) Release ¶ added in v0.0.16
func (ac *AdapterConnector) Release()
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 ¶
Click to show internal directories.
Click to hide internal directories.