Documentation ¶
Index ¶
- type Client
- func (c *Client) Clone(ctx context.Context, name, clone string, opts ...grpc.CallOption) error
- func (c *Client) Close() error
- func (c *Client) Commit(ctx context.Context, name, candidate string, opts ...grpc.CallOption) error
- func (c *Client) Create(ctx context.Context, name string, opts ...grpc.CallOption) error
- func (c *Client) CreateCandidate(ctx context.Context, name, candidate, owner string, p int32, ...) error
- func (c *Client) Delete(ctx context.Context, name string, opts ...grpc.CallOption) error
- func (c *Client) Discard(ctx context.Context, name, candidate string, opts ...grpc.CallOption) error
- func (c *Client) Exists(ctx context.Context, name string, opts ...grpc.CallOption) (bool, error)
- func (c *Client) Get(ctx context.Context, name string, opts ...grpc.CallOption) (*cachepb.GetResponse, error)
- func (c *Client) GetChanges(ctx context.Context, name, candidate string, opts ...grpc.CallOption) ([]*cachepb.GetChangesResponse, error)
- func (c *Client) List(ctx context.Context, opts ...grpc.CallOption) ([]string, error)
- func (c *Client) Modify(ctx context.Context, name string, wo *ClientOpts, dels [][]string, ...) error
- func (c *Client) Prune(ctx context.Context, name string, id string, force bool, ...) (*cachepb.PruneResponse, error)
- func (c *Client) Read(ctx context.Context, name string, ro *ClientOpts, paths [][]string, ...) chan *cachepb.ReadResponse
- func (c *Client) ReadKeys(ctx context.Context, name string, store cachepb.Store) (chan *cachepb.ReadResponse, error)
- func (c *Client) Watch(ctx context.Context, name string, store cache.Store, prefixes [][]string, ...) (chan *cachepb.WatchResponse, error)
- type ClientConfig
- type ClientOpts
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
}
func (*Client) CreateCandidate ¶
func (c *Client) CreateCandidate(ctx context.Context, name, candidate, owner string, p int32, opts ...grpc.CallOption) error
Create a Candidate
func (*Client) Discard ¶
func (c *Client) Discard(ctx context.Context, name, candidate string, opts ...grpc.CallOption) error
Discard changes made to a candidate
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, name string, opts ...grpc.CallOption) (*cachepb.GetResponse, error)
Get a single cache details
func (*Client) GetChanges ¶
func (c *Client) GetChanges(ctx context.Context, name, candidate string, opts ...grpc.CallOption) ([]*cachepb.GetChangesResponse, error)
GetChanges made to a candidate
func (*Client) Modify ¶
func (c *Client) Modify(ctx context.Context, name string, wo *ClientOpts, dels [][]string, upds []*cachepb.Update, opts ...grpc.CallOption) error
modify a cache instance
func (*Client) Read ¶
func (c *Client) Read(ctx context.Context, name string, ro *ClientOpts, paths [][]string, period time.Duration, opts ...grpc.CallOption) chan *cachepb.ReadResponse
Read value(s) from a cache instance
type ClientConfig ¶
type ClientConfig struct { // the cache server address Address string // number of read streams that can be opened concurrently // defaults to 1 MaxReadStream int64 // number of read streams that can be opened concurrently // defaults to 64 MaxWatchStream int64 // gRPC dial and unary RPCs timeout // defaults to 5s Timeout time.Duration }
Click to show internal directories.
Click to hide internal directories.