jetstreamclient

package
v0.0.0-...-f60b9ba Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 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 New

func New(config *Config) (*Client, error)

func (*Client) OrganizationSubject

func (c *Client) OrganizationSubject() string

func (*Client) PersonSubject

func (c *Client) PersonSubject() string

func (*Client) SubscribeOrganization

func (c *Client) SubscribeOrganization(cb func(msg *nats.Msg)) (*nats.Subscription, error)

func (*Client) SubscribePerson

func (c *Client) SubscribePerson(cb func(msg *nats.Msg)) (*nats.Subscription, error)

type Config

type Config struct {
	NatsUrl    string
	StreamName string
	Logger     *zap.SugaredLogger
	Nkey       string
	NkeySeed   string
}

Jump to

Keyboard shortcuts

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