Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateConsumer(ctx context.Context, stream string, subjects []string) (jetstream.Consumer, error)
- func (c *Client) CreateDurableConsumer(ctx context.Context, stream, name string, subjects []string) (jetstream.Consumer, error)
- func (c *Client) CreateObjectStore(ctx context.Context, name, description string) error
- func (c *Client) CreateStream(ctx context.Context, name string, subjects []string) (jetstream.Stream, error)
- func (c *Client) DeleteConsumer(ctx context.Context, stream, name string) error
- func (c *Client) DeleteObjectStore(ctx context.Context, name string) error
- func (c *Client) DeleteStream(ctx context.Context, name string) error
- func (c *Client) GetObjectStore(ctx context.Context, name string) (*ObjectStore, error)
- func (c *Client) ListObjectStores(ctx context.Context) ([]*ObjectStore, error)
- func (c *Client) ListStreams(ctx context.Context) ([]string, error)
- func (c *Client) Publish(ctx context.Context, msg *nats.Msg) error
- type ObjectStore
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 (*Client) CreateConsumer ¶ added in v0.4.0
func (*Client) CreateDurableConsumer ¶ added in v0.4.0
func (*Client) CreateObjectStore ¶ added in v0.4.0
func (*Client) CreateStream ¶ added in v0.4.0
func (*Client) DeleteConsumer ¶ added in v0.4.1
func (*Client) DeleteObjectStore ¶ added in v0.4.0
func (*Client) DeleteStream ¶ added in v0.4.1
func (*Client) GetObjectStore ¶ added in v0.4.0
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
type ObjectStore ¶ added in v0.4.0
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
Click to show internal directories.
Click to hide internal directories.