cluster

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

Cluster ...

func New

func New(listen string, seeds ...string) (csr *Cluster, err error)

New ...

func (*Cluster) Connect

func (c *Cluster) Connect(opts ...grpc.DialOption) error

Connect ...

func (*Cluster) Get

func (c *Cluster) Get(k int32) (*Node, bool)

Get if possible returns node that corresponds to given access token.

func (*Cluster) Len

func (c *Cluster) Len() int

Len returns number of nodes.

func (*Cluster) Nodes

func (c *Cluster) Nodes() []*Node

Nodes ...

type Node

type Node struct {
	Addr   string
	Client mnemosynerpc.SessionManagerClient
}

Node ...

Jump to

Keyboard shortcuts

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