locker

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 10 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, storage models.Storage, ip models.IP) *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