lock

package
v0.0.0-...-161ecb4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 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 Lock

type Lock struct {
	// contains filtered or unexported fields
}

func CreateLock

func CreateLock(client string, prefix etcd.PrefixEnum, key string) *Lock

func (*Lock) Lock

func (jobLock *Lock) Lock() error

抢占锁

func (*Lock) Unlock

func (jobLock *Lock) Unlock()

取消锁

Jump to

Keyboard shortcuts

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