router

package
v0.0.0-...-8085edb Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2014 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(addr string, timeout time.Duration) (*Client, error)

func (*Client) AddStore

func (c *Client) AddStore(addr string) (bool, error)

func (*Client) Clear

func (c *Client) Clear() (bool, error)

func (*Client) Delete

func (c *Client) Delete(key string) (bool, error)

func (*Client) Get

func (c *Client) Get(key string) (*store.StoreItem, error)

func (*Client) Put

func (c *Client) Put(item *store.StoreItem) (bool, error)

type Router

type Router struct {
	Replicas int
	// contains filtered or unexported fields
}

func New

func New() *Router

func (*Router) AddStore

func (r *Router) AddStore(addr string, ok *bool) error

func (*Router) Delete

func (r *Router) Delete(key string, ack *bool) error

func (*Router) Get

func (r *Router) Get(key string, resp *store.StoreItem) (err error)

func (*Router) Put

func (r *Router) Put(item *store.StoreItem, added *bool) error

Jump to

Keyboard shortcuts

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