etcd_queue

package
v0.0.0-...-8e4fce1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdQueue

type EtcdQueue struct {
	Client *clientv3.Client
}

分布式锁 Etcd结构体

func (*EtcdQueue) Put

func (q *EtcdQueue) Put(index int64, v interface{}) error

func (*EtcdQueue) Take

func (q *EtcdQueue) Take(index uint64) (interface{}, error)

type Queue

type Queue interface {
	Put(index int64, v interface{}) error
	Take(index uint64) (interface{}, error)
}

Jump to

Keyboard shortcuts

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