glock

package
v0.0.0-...-6e39b55 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadSplits

func ReadSplits(reader *bufio.Reader) ([]string, error)

Types

type CapacityError

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

type Client

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

func NewClient

func NewClient(endpoints []string, size int, username, password string) (*Client, error)

func (*Client) CheckServerStatus

func (c *Client) CheckServerStatus()

func (*Client) Lock

func (c *Client) Lock(key string, duration time.Duration) (id int64, err error)

func (*Client) Size

func (c *Client) Size() int

func (*Client) Unlock

func (c *Client) Unlock(key string, id int64) (err error)

Jump to

Keyboard shortcuts

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