client

package
v0.0.0-...-e56df46 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: GPL-3.0 Imports: 14 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 NewClient

func NewClient(id uuid.UUID, addr string) (*Client, error)

func (*Client) Publish

func (client *Client) Publish(topicName string, body []byte, ctx context.Context) error

Publish This function needs to be sync in order to be able to handle error on publish.

func (*Client) Subscribe

func (client *Client) Subscribe(topicName string, ctx context.Context, fn func(event *proto.Event) error) error

type EventHandler

type EventHandler func(event *proto.Event) error

Jump to

Keyboard shortcuts

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