Documentation
¶
Index ¶
- Constants
- func NewClient(ctx context.Context, config cmap.CustomMap) (busPluginTY.Plugin, error)
- type Client
- func (c *Client) Close() error
- func (c *Client) Name() string
- func (c *Client) PausePublish()
- func (c *Client) Publish(topic string, data interface{}) error
- func (c *Client) QueueSubscribe(topic, _queueName string, handler busPluginTY.CallBackFunc) (int64, error)
- func (c *Client) QueueUnsubscribe(topic, _queueName string, subscriptionID int64) error
- func (c *Client) ResumePublish()
- func (c *Client) Subscribe(topic string, handler busPluginTY.CallBackFunc) (int64, error)
- func (c *Client) TopicPrefix() string
- func (c *Client) Unsubscribe(topic string, subscriptionID int64) error
- func (c *Client) UnsubscribeAll(topic string) error
- type Config
Constants ¶
View Source
const (
PluginEmbedded = "embedded"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct
func (*Client) PausePublish ¶
func (c *Client) PausePublish()
func (*Client) QueueSubscribe ¶
func (c *Client) QueueSubscribe(topic, _queueName string, handler busPluginTY.CallBackFunc) (int64, error)
QueueSubscribe not supported in embedded bus, just call subscribe
func (*Client) QueueUnsubscribe ¶
QueueUnsubscribe not supported in embedded bus, just call subscribe
func (*Client) ResumePublish ¶
func (c *Client) ResumePublish()
func (*Client) Subscribe ¶
func (c *Client) Subscribe(topic string, handler busPluginTY.CallBackFunc) (int64, error)
Subscribe a topic
func (*Client) TopicPrefix ¶
func (*Client) Unsubscribe ¶
Unsubscribe a topic
func (*Client) UnsubscribeAll ¶
UnsubscribeAll topics
Click to show internal directories.
Click to hide internal directories.