Versions in this module Expand all Collapse all v1 v1.0.1 Apr 22, 2021 v1.0.0 Sep 24, 2020 Changes in this version + const LibChmpx + const LibComlog + const LibK2hash + const LibK2hdkc + const LibSeveritySilent + const SeverityDump + const SeverityError + const SeverityInfo + const SeveritySilent + const SeverityWarning + type AddSubKey struct + func NewAddSubKey(k interface{}, sk interface{}, sv interface{}) (*AddSubKey, error) + func (r *AddSubKey) Execute(s *Session) (bool, error) + func (r *AddSubKey) Result() *AddSubKeyResult + func (r *AddSubKey) String() string + type AddSubKeyResult struct + func (r *AddSubKeyResult) Bool() bool + func (r *AddSubKeyResult) Error() string + func (r *AddSubKeyResult) String() string + type Attr struct + func (r *Attr) String() string + type CasGet struct + func NewCasGet(k interface{}) (*CasGet, error) + func NewCasGetWithCasType(k interface{}, ct CasType) (*CasGet, error) + func (r *CasGet) Execute(s *Session) (bool, error) + func (r *CasGet) Result() *CasGetResult + func (r *CasGet) SetEncPass(s string) + func (r *CasGet) SetValueLen(vl uint8) + func (r *CasGet) String() string + type CasGetResult struct + func (r *CasGetResult) Bool() bool + func (r *CasGetResult) Bytes() []byte + func (r *CasGetResult) Error() string + func (r *CasGetResult) String() string + type CasIncDec struct + func NewCasIncDec(k interface{}, i bool) (*CasIncDec, error) + func (r *CasIncDec) Decrement(s *Session) (bool, error) + func (r *CasIncDec) Execute(s *Session) (bool, error) + func (r *CasIncDec) Increment(s *Session) (bool, error) + func (r *CasIncDec) Result() *CasIncDecResult + func (r *CasIncDec) SetEncPass(s string) + func (r *CasIncDec) SetExpire(t int64) + func (r *CasIncDec) String() string + type CasIncDecResult struct + func (r *CasIncDecResult) Bool() bool + func (r *CasIncDecResult) Error() string + func (r *CasIncDecResult) String() string + type CasInit struct + func NewCasInit(k interface{}) (cmd *CasInit, err error) + func NewCasInitWithValue(k interface{}, v interface{}) (*CasInit, error) + func (r *CasInit) Execute(s *Session) (bool, error) + func (r *CasInit) Result() *CasInitResult + func (r *CasInit) SetEncPass(s string) + func (r *CasInit) SetExpire(t int64) + func (r *CasInit) SetValue(v []byte) + func (r *CasInit) String() string + type CasInitResult struct + func (r *CasInitResult) Bool() bool + func (r *CasInitResult) Error() string + func (r *CasInitResult) String() string + type CasSet struct + func NewCasSet(k interface{}, o interface{}, n interface{}) (*CasSet, error) + func (r *CasSet) Execute(s *Session) (bool, error) + func (r *CasSet) Result() *CasSetResult + func (r *CasSet) SetEncPass(s string) + func (r *CasSet) SetExpire(t int64) + func (r *CasSet) String() string + type CasSetResult struct + func (r *CasSetResult) Bool() bool + func (r *CasSetResult) Error() string + func (r *CasSetResult) String() string + type CasType uint8 + const CasType16 + const CasType32 + const CasType64 + const CasType8 + type ClearSubKeys struct + func NewClearSubKeys(k interface{}) (*ClearSubKeys, error) + func (r *ClearSubKeys) Execute(s *Session) (bool, error) + func (r *ClearSubKeys) Result() *ClearSubKeysResult + func (r *ClearSubKeys) String() string + type ClearSubKeysResult struct + func (r *ClearSubKeysResult) Bool() bool + func (r *ClearSubKeysResult) Error() string + func (r *ClearSubKeysResult) String() string + type Client struct + func NewClient(f string, p uint16) *Client + func (c *Client) Close() + func (c *Client) CreateSession() (*Session, error) + func (c *Client) Get(k string) (*GetResult, error) + func (c *Client) GetSubKeys(k string) (*GetSubKeysResult, error) + func (c *Client) Send(cmd Command) (Command, error) + func (c *Client) Set(k string, v string) (*SetResult, error) + func (c *Client) SetAutoRejoin(b bool) *Client + func (c *Client) SetAutoRejoinRetry(b bool) *Client + func (c *Client) SetChmpxFile(f string) *Client + func (c *Client) SetCleanup(b bool) *Client + func (c *Client) SetCtlPort(p uint16) *Client + func (c *Client) SetCuk(u string) *Client + func (c *Client) SetLibLogSeverity(p logSeverity) *Client + func (c *Client) SetLogFile(f string) *Client + func (c *Client) SetLogSeverity(p logSeverity) *Client + func (c *Client) SetLogger(l *K2hLog) *Client + func (c *Client) SetSubKeys(k string, skeys []string) (*SetSubKeysResult, error) + func (c *Client) String() string + type Command interface + Execute func(s *Session) (bool, error) + String func() string + type Get struct + func NewGet(k interface{}) (*Get, error) + func (r *Get) Execute(s *Session) (bool, error) + func (r *Get) Result() *GetResult + func (r *Get) SetEncPass(s string) + func (r *Get) String() string + type GetAttrs struct + func NewGetAttrs(k interface{}) (*GetAttrs, error) + func (r *GetAttrs) Execute(s *Session) (bool, error) + func (r *GetAttrs) Result() *GetAttrsResult + func (r *GetAttrs) String() string + type GetAttrsResult struct + func (r *GetAttrsResult) Bool() bool + func (r *GetAttrsResult) Bytes() []*Attr + func (r *GetAttrsResult) Error() string + func (r *GetAttrsResult) String() map[string]string + type GetResult struct + func (r *GetResult) Bool() bool + func (r *GetResult) Bytes() []byte + func (r *GetResult) Error() string + func (r *GetResult) String() string + type GetSubKeys struct + func NewGetSubKeys(k interface{}) (*GetSubKeys, error) + func (r *GetSubKeys) Execute(s *Session) (bool, error) + func (r *GetSubKeys) Result() *GetSubKeysResult + func (r *GetSubKeys) String() string + type GetSubKeysResult struct + func (r *GetSubKeysResult) Bool() bool + func (r *GetSubKeysResult) Bytes() [][]byte + func (r *GetSubKeysResult) Error() string + func (r *GetSubKeysResult) String() []string + type K2hLog struct + func K2hLogInstance() *K2hLog + func (l *K2hLog) BundleLibLog(b bool) + func (l *K2hLog) Close() + func (l *K2hLog) Dump(msg string) + func (l *K2hLog) Dumpf(format string, v ...interface{}) + func (l *K2hLog) Error(msg string) + func (l *K2hLog) Errorf(format string, v ...interface{}) + func (l *K2hLog) Info(msg string) + func (l *K2hLog) Infof(format string, v ...interface{}) + func (l *K2hLog) SetChmpxLog(b bool) + func (l *K2hLog) SetComlog(b bool) + func (l *K2hLog) SetK2hashLog(b bool) + func (l *K2hLog) SetK2hdkcLog(b bool) + func (l *K2hLog) SetLibLogSeverity(p logSeverity) + func (l *K2hLog) SetLogFile(f string) + func (l *K2hLog) SetLogSeverity(p logSeverity) + func (l *K2hLog) SetOutput(w io.Writer) + func (l *K2hLog) String() string + func (l *K2hLog) Warn(msg string) + func (l *K2hLog) Warnf(format string, v ...interface{}) + type QueuePop struct + func NewQueuePop(p interface{}) (cmd *QueuePop, err error) + func NewQueuePopWithKeyQueue(p interface{}, kq bool) (cmd *QueuePop, err error) + func (r *QueuePop) Execute(s *Session) (bool, error) + func (r *QueuePop) Result() *QueuePopResult + func (r *QueuePop) SetEncPass(s string) + func (r *QueuePop) String() string + func (r *QueuePop) UseFifo(b bool) + func (r *QueuePop) UseKeyQueue(b bool) + type QueuePopResult struct + func (r *QueuePopResult) Bool() bool + func (r *QueuePopResult) Error() string + func (r *QueuePopResult) KeyBytes() []byte + func (r *QueuePopResult) KeyString() string + func (r *QueuePopResult) String() string + func (r *QueuePopResult) ValBytes() []byte + func (r *QueuePopResult) ValString() string + type QueuePush struct + func NewQueuePush(p interface{}, v interface{}) (cmd *QueuePush, err error) + func NewQueuePushWithKey(p interface{}, v interface{}, k interface{}) (*QueuePush, error) + func (r *QueuePush) Execute(s *Session) (bool, error) + func (r *QueuePush) Result() *QueuePushResult + func (r *QueuePush) SetAttr(b bool) + func (r *QueuePush) SetEncPass(s string) + func (r *QueuePush) SetExpire(t int64) + func (r *QueuePush) SetKey(k interface{}) (bool, error) + func (r *QueuePush) String() string + func (r *QueuePush) UseFifo(b bool) + type QueuePushResult struct + func (r *QueuePushResult) Bool() bool + func (r *QueuePushResult) Error() string + func (r *QueuePushResult) String() string + type QueueRemove struct + func NewQueueRemove(p interface{}, cnt int64) (*QueueRemove, error) + func NewQueueRemoveWithKeyQueue(p interface{}, cnt int64, kq bool) (cmd *QueueRemove, err error) + func (r *QueueRemove) Execute(s *Session) (bool, error) + func (r *QueueRemove) Result() *QueueRemoveResult + func (r *QueueRemove) SetEncPass(s string) + func (r *QueueRemove) String() string + func (r *QueueRemove) UseFifo(b bool) + func (r *QueueRemove) UseKeyQueue(b bool) + type QueueRemoveResult struct + func (r *QueueRemoveResult) Bool() bool + func (r *QueueRemoveResult) Error() string + func (r *QueueRemoveResult) String() string + type Remove struct + func NewRemove(k interface{}) (cmd *Remove, err error) + func (r *Remove) Execute(s *Session) (bool, error) + func (r *Remove) Result() *RemoveResult + func (r *Remove) String() string + type RemoveResult struct + func (r *RemoveResult) Bool() bool + func (r *RemoveResult) Error() string + func (r *RemoveResult) String() string + type RemoveSubKey struct + func NewRemoveSubKey(k interface{}, sk interface{}) (*RemoveSubKey, error) + func (r *RemoveSubKey) Execute(s *Session) (bool, error) + func (r *RemoveSubKey) Result() *RemoveSubKeyResult + func (r *RemoveSubKey) String() string + type RemoveSubKeyResult struct + func (r *RemoveSubKeyResult) Bool() bool + func (r *RemoveSubKeyResult) Error() string + func (r *RemoveSubKeyResult) String() string + type Rename struct + func NewRename(o interface{}, n interface{}) (cmd *Rename, err error) + func (r *Rename) Execute(s *Session) (bool, error) + func (r *Rename) Result() *RenameResult + func (r *Rename) SetAttr(b bool) + func (r *Rename) SetEncPass(p string) + func (r *Rename) SetExpire(t int64) + func (r *Rename) SetParentKey(p interface{}) (bool, error) + func (r *Rename) String() string + type RenameResult struct + func (r *RenameResult) Bool() bool + func (r *RenameResult) Error() string + func (r *RenameResult) String() string + type Result interface + Bool func() bool + String func() string + type Session struct + func NewSession(c *Client) (*Session, error) + func (s *Session) Close() error + func (s *Session) String() string + type Set struct + func NewSet(k interface{}, v interface{}) (*Set, error) + func (r *Set) Execute(s *Session) (bool, error) + func (r *Set) Result() *SetResult + func (r *Set) SetEncPass(s string) + func (r *Set) SetExpire(t int64) + func (r *Set) SetRmSubKeyList(b bool) + func (r *Set) String() string + type SetAll struct + func NewSetAll(k interface{}, v interface{}, sk interface{}) (*SetAll, error) + func (r *SetAll) Execute(s *Session) (bool, error) + func (r *SetAll) Result() *SetAllResult + func (r *SetAll) String() string + type SetAllResult struct + func (r *SetAllResult) Bool() bool + func (r *SetAllResult) Error() string + func (r *SetAllResult) String() string + type SetResult struct + func (r *SetResult) Bool() bool + func (r *SetResult) Error() string + func (r *SetResult) String() string + type SetSubKeys struct + func NewSetSubKeys(k interface{}, sk interface{}) (*SetSubKeys, error) + func (r *SetSubKeys) Execute(s *Session) (bool, error) + func (r *SetSubKeys) Result() *SetSubKeysResult + func (r *SetSubKeys) String() string + type SetSubKeysResult struct + func (r *SetSubKeysResult) Bool() bool + func (r *SetSubKeysResult) Error() string + func (r *SetSubKeysResult) String() string