const ErrorCodeKeyNotFound …
const ErrorCodeTestFailed …
const ErrorCodeNotFile …
const ErrorCodeNotDir …
const ErrorCodeNodeExist …
const ErrorCodeRootROnly …
const ErrorCodeDirNotEmpty …
const ErrorCodeUnauthorized …
const ErrorCodePrevValueRequired …
const ErrorCodeTTLNaN …
const ErrorCodeIndexNaN …
const ErrorCodeInvalidField …
const ErrorCodeInvalidForm …
const ErrorCodeRaftInternal …
const ErrorCodeLeaderElect …
const ErrorCodeWatcherCleared …
const ErrorCodeEventIndexCleared …
type Error …
func (e Error) Error() string { … }
var ErrInvalidJSON …
var ErrEmptyBody …
type PrevExistType …
const PrevIgnore …
const PrevExist …
const PrevNoExist …
var defaultV2KeysPrefix …
func NewKeysAPI(c Client) KeysAPI { … }
func NewKeysAPIWithPrefix(c Client, p string) KeysAPI { … }
type KeysAPI …
type WatcherOptions …
type CreateInOrderOptions …
type SetOptions …
type GetOptions …
type DeleteOptions …
type Watcher …
type Response …
type Node …
func (n *Node) String() string { … }
func (n *Node) TTLDuration() time.Duration { … }
type Nodes …
func (ns Nodes) Len() int { … }
func (ns Nodes) Less(i, j int) bool { … }
func (ns Nodes) Swap(i, j int) { … }
type httpKeysAPI …
func (k *httpKeysAPI) Set(ctx context.Context, key, val string, opts *SetOptions) (*Response, error) { … }
func (k *httpKeysAPI) Create(ctx context.Context, key, val string) (*Response, error) { … }
func (k *httpKeysAPI) CreateInOrder(ctx context.Context, dir, val string, opts *CreateInOrderOptions) (*Response, error) { … }
func (k *httpKeysAPI) Update(ctx context.Context, key, val string) (*Response, error) { … }
func (k *httpKeysAPI) Delete(ctx context.Context, key string, opts *DeleteOptions) (*Response, error) { … }
func (k *httpKeysAPI) Get(ctx context.Context, key string, opts *GetOptions) (*Response, error) { … }
func (k *httpKeysAPI) Watcher(key string, opts *WatcherOptions) Watcher { … }
type httpWatcher …
func (hw *httpWatcher) Next(ctx context.Context) (*Response, error) { … }
func v2KeysURL(ep url.URL, prefix, key string) *url.URL { … }
type getAction …
func (g *getAction) HTTPRequest(ep url.URL) *http.Request { … }
type waitAction …
func (w *waitAction) HTTPRequest(ep url.URL) *http.Request { … }
type setAction …
func (a *setAction) HTTPRequest(ep url.URL) *http.Request { … }
type deleteAction …
func (a *deleteAction) HTTPRequest(ep url.URL) *http.Request { … }
type createInOrderAction …
func (a *createInOrderAction) HTTPRequest(ep url.URL) *http.Request { … }
func unmarshalHTTPResponse(code int, header http.Header, body []byte) (res *Response, err error) { … }
var jsonIterator …
func unmarshalSuccessfulKeysResponse(header http.Header, body []byte) (*Response, error) { … }
func unmarshalFailedKeysResponse(body []byte) error { … }