etcd

package
v1.0.66 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IService

type IService interface {
	Lock(id string, refreshInterval time.Duration) (*clientv3.LeaseGrantResponse, error)
	LockAndRefresh(ctx context.Context, id string, refreshInterval time.Duration, done <-chan bool) error
	ContainsKey(id string) (bool, error)
}

func NewService

func NewService(cluster []string, options Options) (IService, error)

type Options

type Options struct {
	Ttl int64
}

Jump to

Keyboard shortcuts

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