Documentation ¶
Index ¶
- Constants
- func NewEmbeddedEtcd(cfg etcdadpt.Config) etcdadpt.Client
- type EtcdEmbed
- func (s *EtcdEmbed) Close()
- func (s *EtcdEmbed) Compact(ctx context.Context, reserve int64) error
- func (s *EtcdEmbed) Do(ctx context.Context, opts ...etcdadpt.OpOption) (*etcdadpt.Response, error)
- func (s *EtcdEmbed) Err() <-chan error
- func (s *EtcdEmbed) LeaseGrant(ctx context.Context, TTL int64) (int64, error)
- func (s *EtcdEmbed) LeaseRenew(ctx context.Context, leaseID int64) (int64, error)
- func (s *EtcdEmbed) LeaseRevoke(ctx context.Context, leaseID int64) error
- func (s *EtcdEmbed) ListCluster(ctx context.Context) (etcdadpt.Clusters, error)
- func (s *EtcdEmbed) Ready() <-chan struct{}
- func (s *EtcdEmbed) Status(ctx context.Context) (*etcdadpt.StatusResponse, error)
- func (s *EtcdEmbed) Txn(ctx context.Context, opts []etcdadpt.OpOptions) (*etcdadpt.Response, error)
- func (s *EtcdEmbed) TxnWithCmp(ctx context.Context, success []etcdadpt.OpOptions, cmps []etcdadpt.CmpOptions, ...) (*etcdadpt.Response, error)
- func (s *EtcdEmbed) Watch(ctx context.Context, opts ...etcdadpt.OpOption) (err error)
- func (s *EtcdEmbed) WithTimeout(ctx context.Context) (context.Context, context.CancelFunc)
Constants ¶
View Source
const DefaultDataDir = "data"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EtcdEmbed ¶
type EtcdEmbed struct { Cfg etcdadpt.Config Embed *embed.Etcd // contains filtered or unexported fields }
func (*EtcdEmbed) LeaseGrant ¶
func (*EtcdEmbed) LeaseRenew ¶
func (*EtcdEmbed) LeaseRevoke ¶
func (*EtcdEmbed) ListCluster ¶
func (*EtcdEmbed) TxnWithCmp ¶
func (*EtcdEmbed) WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.