locker

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdLocker

func NewEtcdLocker(config config.Config, etcd *clientv3.Client, ip string) *etcdLocker

Types

type Locker

type Locker interface {
	Refresh(context.Context) error
	Unlock(context.Context) error
	IsMaster(context.Context) (bool, error)
	Stop(context.Context) error
}

Directories

Path Synopsis
Package lockermock is a generated GoMock package.
Package lockermock is a generated GoMock package.

Jump to

Keyboard shortcuts

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