Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) Delete(oos ...OpOption) error
- func (c *Client) Do(fn func(string, interface{}) bool, oos ...OpOption) error
- func (c *Client) DoMap(fn func(string, interface{}) bool, oos ...OpOption) error
- func (c *Client) DoSlice(fn func(int, interface{}) bool, oos ...OpOption) error
- func (c *Client) Get(oos ...OpOption) (interface{}, error)
- func (c *Client) GetBool() (bool, error)
- func (c *Client) GetBoolVar(bp *bool) error
- func (c *Client) GetFloat32() (float32, error)
- func (c *Client) GetFloat32Var(fp *float32) (err error)
- func (c *Client) GetFloat64() (float64, error)
- func (c *Client) GetFloat64Var(fp *float64) (err error)
- func (c *Client) GetInt() (int, error)
- func (c *Client) GetInt16() (int16, error)
- func (c *Client) GetInt16Var(ip *int16) (err error)
- func (c *Client) GetInt32() (int32, error)
- func (c *Client) GetInt32Var(ip *int32) (err error)
- func (c *Client) GetInt64() (int64, error)
- func (c *Client) GetInt64Var(ip *int64) (err error)
- func (c *Client) GetInt8() (int8, error)
- func (c *Client) GetInt8Var(ip *int8) (err error)
- func (c *Client) GetIntVar(ip *int) (err error)
- func (c *Client) GetMap(oos ...OpOption) (map[string]interface{}, error)
- func (c *Client) GetSlice(oos ...OpOption) ([]interface{}, error)
- func (c *Client) GetString() (string, error)
- func (c *Client) GetStringVar(sp *string) (err error)
- func (c *Client) GetStructVar(out interface{}, oos ...OpOption) error
- func (c *Client) GetUint() (uint, error)
- func (c *Client) GetUint16() (uint16, error)
- func (c *Client) GetUint16Var(ip *uint16) (err error)
- func (c *Client) GetUint32() (uint32, error)
- func (c *Client) GetUint32Var(ip *uint32) (err error)
- func (c *Client) GetUint64() (uint64, error)
- func (c *Client) GetUint64Var(ip *uint64) (err error)
- func (c *Client) GetUint8() (uint8, error)
- func (c *Client) GetUint8Var(ip *uint8) (err error)
- func (c *Client) GetUintVar(ip *uint) (err error)
- func (c *Client) Put(in interface{}, oos ...OpOption) error
- func (c *Client) PutMap(in map[string]interface{}) error
- func (c *Client) PutSlice(in []interface{}, oos ...OpOption) error
- func (c *Client) ShadowClone(directory string) (*Client, error)
- type Kind
- type OpOption
- type Option
- type SKind
- type STM
Constants ¶
View Source
const ( SInvalid SKind = "invalid" SNil = "nil" SScale = "scale" SSlice = "slice" SMap = "map" )
Variables ¶
View Source
var ( ErrInvalidArgument = fmt.Errorf("invalid argument") ErrInvalidOperation = fmt.Errorf("invalid operation") ErrUnsupportedOperaton = fmt.Errorf("unsupported operation") ErrUnknownType = fmt.Errorf("unknown type") ErrUnsupportedType = fmt.Errorf("unsupported type") ErrNotAbsoluteDir = fmt.Errorf("%s: required an absolute directory", ErrInvalidArgument) ErrNotAllowedDir = fmt.Errorf("%s: not allowed directory", ErrInvalidArgument) ErrEmptyDir = fmt.Errorf("%s: empty dir", ErrInvalidOperation) ErrUnsupportedDeletion = fmt.Errorf("%s: 'Delete' dir on type", ErrUnsupportedOperaton) ErrUnsupportedDo = fmt.Errorf("%s: 'Do' dir on type", ErrUnsupportedOperaton) ErrIndexOutOfRange = fmt.Errorf("slice index out of range") )
View Source
var Config config
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client provides and manages an mapetcd client session.
func (*Client) GetFloat32Var ¶
GetFloat32Var ...
func (*Client) GetFloat64Var ¶
GetFloat64Var ...
func (*Client) GetInt16Var ¶
(c *Client) GetInt16Var ...
func (*Client) GetInt32Var ¶
(c *Client) GetInt32Var ...
func (*Client) GetInt64Var ¶
(c *Client) GetInt64Var ...
func (*Client) GetInt8Var ¶
(c *Client) GetInt8Var ...
func (*Client) GetStringVar ¶
GetStringVar ...
func (*Client) GetStructVar ¶
func (*Client) GetUint16Var ¶
(c *Client) GetUint16Var ...
func (*Client) GetUint32Var ¶
(c *Client) GetUint32Var ...
func (*Client) GetUint64Var ¶
(c *Client) GetUint64Var ...
func (*Client) GetUint8Var ¶
(c *Client) GetUint8Var ...
type OpOption ¶
type OpOption func(*Option)
func WithEvalTags ¶
func WithEvalVarCheck ¶
func WithEvalVarFmt ¶
func WithKeysOnly ¶
func WithKeysOnly() OpOption
func WithTagsOnly ¶
func WithTagsOnly() OpOption
Source Files ¶
Click to show internal directories.
Click to hide internal directories.