Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWatcher ¶
func NewWatcher(w etcd.Watcher, xfm KeyEncoder) etcd.Watcher
Types ¶
type KeyEncoder ¶
KeyEncoder transforms a string 1:1 between encoded and decoded representations.
func NewKeyEncoderHMAC ¶
func NewKeyEncoderHMAC(h func() hash.Hash, b cipher.Block) KeyEncoder
NewKeyEncoderHMAC use an hmac hash and a block cipher to encode keys.
func NewKeyEncoderNop ¶
func NewKeyEncoderNop() KeyEncoder
Click to show internal directories.
Click to hide internal directories.