Documentation
¶
Index ¶
- type Client
- func (x *Client) Get(key string) (result *Result, err error)
- func (x *Client) NamespaceParse() string
- 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 Payload
- type Result
- 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 Kv nats.KeyValue }
func (*Client) NamespaceParse ¶ added in v2.1.0
type Result ¶
type Result struct { Option StreamOption `json:"option"` Info *nats.StreamInfo `json:"info"` }
type StreamOption ¶
Click to show internal directories.
Click to hide internal directories.