Documentation ¶
Overview ¶
Package etcdstruct implements tools to retrieve and store structured configuration data in etcd.
Index ¶
- func DeleteEtcdStructs(ctx context.Context, etcdClient *etcd.Client, etcdKey string, ...) (int64, error)
- func RetrieveEtcdStruct(ctx context.Context, etcdClient *etcd.Client, etcdKey string, ...) (bool, error)
- func RetrieveEtcdStructs(ctx context.Context, etcdClient *etcd.Client, ...) error
- func UpsertEtcdStruct(ctx context.Context, etcdClient *etcd.Client, etcdKey string, tok EtcdStruct) error
- func UpsertEtcdStructAtomic(ctx context.Context, etcdClient *etcd.Client, etcdKey string, tok EtcdStruct) (bool, error)
- type EtcdStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEtcdStructs ¶
func RetrieveEtcdStruct ¶
func RetrieveEtcdStructs ¶
func UpsertEtcdStruct ¶
func UpsertEtcdStructAtomic ¶
Types ¶
type EtcdStruct ¶
EtcdStruct abstracts a structured configuration stored in a single key-value pair in etcd. It is encoded using the MsgPack standard.
Click to show internal directories.
Click to hide internal directories.