Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 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 {
	Node      string
	Nats      *nats.Conn
	JetStream nats.JetStreamContext
	KeyValue  nats.KeyValue
}

func New

func New(node string, nc *nats.Conn) (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)

Jump to

Keyboard shortcuts

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