natsc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func Connect

func Connect(addr, clusterID, clientID string) (*Client, error)

func (*Client) Publish added in v1.0.0

func (c *Client) Publish(subject string, message []byte, validateJSON bool) error

func (*Client) Subscribe

func (c *Client) Subscribe(subject string, delta time.Duration) (chan json.RawMessage, error)

func (Client) Validate added in v1.0.0

func (c Client) Validate(data []byte) error

Jump to

Keyboard shortcuts

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