mosquitto

package
v0.0.0-...-36f5f09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MqttDefaultClientId = "cqrs-es"

MqttDefaultClientId is the default method

View Source
const MqttDefaultHost = "localhost"

MqttDefaultHost is the default host

View Source
const MqttDefaultMethod = "tcp"

MqttDefaultMethod is the default method

View Source
const MqttDefaultPort = 1883

MqttDefaultPort is the default port

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client nats

func NewClient

func NewClient() (*Client, error)

NewClient create a new client with default parameters

func NewClientWithPort

func NewClientWithPort(method string, host string, port int, clientID string) (*Client, error)

NewClientWithPort create a new client with options

func (*Client) Publish

func (c *Client) Publish(event triper.Event, bucket, subset string) error

Publish a event

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL