Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthOptions ¶
BasicAuthOptions contains options regarding to basic authentication.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a shell for the env client
func (*Client) Close ¶
func (c *Client) Close()
Close is only meant to fulfill the easykv.ReadWatcher interface. Does nothing.
func (*Client) GetValues ¶
GetValues is used to lookup all keys with a prefix. Several prefixes can be specified in the keys array.
func (*Client) WatchPrefix ¶
func (c *Client) WatchPrefix(ctx context.Context, prefix string, opts ...easykv.WatchOption) (uint64, error)
WatchPrefix
type Option ¶
type Option func(*Options)
Option configures the nats client.
func WithBasicAuth ¶
func WithBasicAuth(b BasicAuthOptions) Option
WithBasicAuth enables the basic authentication and sets the username and password.
func WithCredentials ¶
WithCredentials enables the NATS 2.0 and NATS NGS compatible user credentials and sets the path to the credentials file
Click to show internal directories.
Click to hide internal directories.