Documentation ¶
Index ¶
- type Client
- func (c *Client) KV() (kv.Store, error)
- func (c *Client) Services(opts services.OverrideOptions) (services.Services, error)
- func (c *Client) Store(opts kv.OverrideOptions) (kv.Store, error)
- func (c *Client) Txn() (kv.TxnStore, error)
- func (c *Client) TxnStore(opts kv.OverrideOptions) (kv.TxnStore, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a cluster/client.Client backed by kv/mem transaction store, which stores data in memory instead of in etcd.
func New ¶
func New(serviceOpts kv.OverrideOptions) *Client
New instantiates a client which defaults its stores to the given zone/env/namespace.
func (*Client) Services ¶
Services constructs a gateway to all cluster services, backed by a mem store.
func (*Client) Store ¶
Store returns/constructs a mem backed kv.Store for the given env/zone/namespace.
Click to show internal directories.
Click to hide internal directories.