Documentation
¶
Index ¶
- type Client
- func (x *Client) Get(key string) (result map[string]interface{}, err error)
- func (x *Client) Publish(ctx context.Context, key string, payload Payload) (err error)
- func (x *Client) Remove(key string) (err error)
- func (x *Client) Set(ctx context.Context, option StreamOption) (err error)
- func (x *Client) Update(ctx context.Context, option StreamOption) (err error)
- type Option
- type Payload
- type StreamOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Namespace string Js nats.JetStreamContext KeyValue nats.KeyValue }
type Option ¶
type Option func(x *Client)
func SetJetStream ¶
func SetJetStream(v nats.JetStreamContext) Option
func SetNamespace ¶
type StreamOption ¶
Click to show internal directories.
Click to hide internal directories.