server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.4.0

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

func New

func New(
	servers []string,
	userJWT,
	userSeed,
	serverCert string,
) (*Client, error)

func (*Client) CreateConsumer added in v0.4.0

func (c *Client) CreateConsumer(ctx context.Context, stream string, subjects []string) (jetstream.Consumer, error)

func (*Client) CreateDurableConsumer added in v0.4.0

func (c *Client) CreateDurableConsumer(ctx context.Context, stream, name string, subjects []string) (jetstream.Consumer, error)

func (*Client) CreateObjectStore added in v0.4.0

func (c *Client) CreateObjectStore(ctx context.Context, name, description string) error

func (*Client) CreateStream added in v0.4.0

func (c *Client) CreateStream(ctx context.Context, name string, subjects []string) (jetstream.Stream, error)

func (*Client) DeleteObjectStore added in v0.4.0

func (c *Client) DeleteObjectStore(ctx context.Context, name string) error

func (*Client) GetObjectStore added in v0.4.0

func (c *Client) GetObjectStore(ctx context.Context, name string) (*ObjectStore, error)

func (*Client) ListObjectStores added in v0.4.0

func (c *Client) ListObjectStores(ctx context.Context) ([]*ObjectStore, error)

func (*Client) ListStreams added in v0.4.0

func (c *Client) ListStreams(ctx context.Context) ([]string, error)

func (*Client) Publish added in v0.4.0

func (c *Client) Publish(ctx context.Context, msg *nats.Msg) error

type ObjectStore added in v0.4.0

type ObjectStore struct {
	*natsfs.FS
	// contains filtered or unexported fields
}

func NewObjectStore added in v0.4.0

func NewObjectStore(ctx context.Context, store jetstream.ObjectStore) (*ObjectStore, error)

func (*ObjectStore) Close added in v0.4.0

func (o *ObjectStore) Close() error

func (*ObjectStore) Description added in v0.4.0

func (o *ObjectStore) Description() string

func (*ObjectStore) Name added in v0.4.0

func (o *ObjectStore) Name() string

func (*ObjectStore) Size added in v0.4.0

func (o *ObjectStore) Size() uint64

Jump to

Keyboard shortcuts

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