client

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

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

Go to latest
Published: Jul 19, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewClient

func NewClient(keysAPI etcd.KeysAPI, serversGroupConfig, peersGroupConfig utility.EtcdGrpcClientGroupConfig) (*Client, error)

func (*Client) Download

func (client *Client) Download(key string, output file.File) error

type DutyDecider

type DutyDecider interface {
	ChangedSince(time.Time) bool
	IsDutyBlock(int) bool
}

type PriorityDecider

type PriorityDecider interface {
	Decide(id int) (priority int, fromServer bool)
}

Jump to

Keyboard shortcuts

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