etcd

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeInt64

func DecodeInt64(b [8]byte) int64

func EncodeInt64

func EncodeInt64(i int64) [8]byte

Types

type Etcd

type Etcd struct {
	manager.MuxImplBase

	Logger logrus.FieldLogger
	Clock  clock.Clock
	// contains filtered or unexported fields
}

func (*Etcd) Client

func (cache *Etcd) Client() *etcdv3.Client

func (*Etcd) Close

func (cache *Etcd) Close(ctx context.Context) error

func (*Etcd) Fetch

func (cache *Etcd) Fetch(ctx context.Context, key string) (*spancache.Entry, error)

func (*Etcd) FetchOrReserve

func (cache *Etcd) FetchOrReserve(ctx context.Context, key string, ttl time.Duration) (*spancache.Entry, error)

func (*Etcd) Init

func (cache *Etcd) Init() error

func (*Etcd) MuxImplName

func (_ *Etcd) MuxImplName() (name string, isDefault bool)

func (*Etcd) Options

func (cache *Etcd) Options() manager.Options

func (*Etcd) ReservedVarintTime

func (cache *Etcd) ReservedVarintTime() []byte

func (*Etcd) SetReserved

func (cache *Etcd) SetReserved(ctx context.Context, key string, value []byte, lastUid spancache.Uid, ttl time.Duration) error

func (*Etcd) Start

func (cache *Etcd) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL