Documentation ¶
Index ¶
- type ChanClient
- func (c *ChanClient) Close() error
- func (c *ChanClient) PublishEvent(event common.MapStr, opts ...publisher.ClientOption) bool
- func (c *ChanClient) PublishEvents(events []common.MapStr, opts ...publisher.ClientOption) bool
- func (c *ChanClient) ReceiveEvent() common.MapStr
- func (c *ChanClient) ReceiveEvents() []common.MapStr
- type PublishMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanClient ¶
type ChanClient struct { Channel chan PublishMessage // contains filtered or unexported fields }
given channel only.
func NewChanClient ¶
func NewChanClient(bufSize int) *ChanClient
func NewChanClientWith ¶
func NewChanClientWith(ch chan PublishMessage) *ChanClient
func (*ChanClient) Close ¶
func (c *ChanClient) Close() error
func (*ChanClient) PublishEvent ¶
func (c *ChanClient) PublishEvent(event common.MapStr, opts ...publisher.ClientOption) bool
PublishEvent will publish the event on the channel. Options will be ignored. Always returns true.
func (*ChanClient) PublishEvents ¶
func (c *ChanClient) PublishEvents(events []common.MapStr, opts ...publisher.ClientOption) bool
PublishEvents publishes all event on the configured channel. Options will be ignored. Always returns true.
func (*ChanClient) ReceiveEvent ¶
func (c *ChanClient) ReceiveEvent() common.MapStr
func (*ChanClient) ReceiveEvents ¶
func (c *ChanClient) ReceiveEvents() []common.MapStr
Click to show internal directories.
Click to hide internal directories.