client

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.4.0

type Client struct {
	Namespace string
	Node      string
	Nats      *nats.Conn
	JetStream nats.JetStreamContext
	KeyValue  nats.KeyValue
}

func New

func New(options ...Option) (x *Client, err error)

func (*Client) Get added in v1.4.0

func (x *Client) Get(key string) (option common.ScheduleOption, err error)

func (*Client) Lists added in v1.4.0

func (x *Client) Lists() (keys []string, err error)

func (*Client) Ping added in v1.4.0

func (x *Client) Ping() (result bool, err error)

func (*Client) Remove added in v1.4.0

func (x *Client) Remove(key string) (err error)

func (*Client) Set added in v1.4.0

func (x *Client) Set(key string, option common.ScheduleOption) (err error)

func (*Client) Status added in v1.4.0

func (x *Client) Status(key string, value bool) (err error)

type Option added in v1.4.0

type Option func(x *Client)

func SetJetStream added in v1.4.0

func SetJetStream(v nats.JetStreamContext) Option

func SetNamespace added in v1.4.0

func SetNamespace(v string) Option

func SetNats added in v1.4.0

func SetNats(v *nats.Conn) Option

func SetNode added in v1.4.0

func SetNode(v string) Option

Jump to

Keyboard shortcuts

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