etcd

package
v1.0.63 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 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) (*clientv3.LeaseGrantResponse, error)
	LockAndRefresh(id string, done <-chan bool) error
	ContainsKey(id string) (bool, error)
}

func NewService

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

type Options

type Options struct {
	RefreshInterval int
	Ttl             int64
}

Jump to

Keyboard shortcuts

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