endpoint

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: 13 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 {
	Response *http.Response
	// contains filtered or unexported fields
}

func NewClient

func NewClient(addr string) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(key Key) error

func (*Client) Get

func (c *Client) Get(key Key) ([]byte, error)

func (*Client) Put

func (c *Client) Put(key Key, data []byte) error

type Endpoint

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

func New

func New() *Endpoint

func (*Endpoint) AddRouter

func (e *Endpoint) AddRouter(addr string) error

func (*Endpoint) Delete

func (e *Endpoint) Delete(key string) ([]byte, error)

func (*Endpoint) Get

func (e *Endpoint) Get(key string) ([]byte, error)

func (*Endpoint) Listen

func (e *Endpoint) Listen(httpAddr string)

func (*Endpoint) Put

func (e *Endpoint) Put(key string, data []byte) (bool, error)

func (*Endpoint) RegisterInternalRPC

func (e *Endpoint) RegisterInternalRPC()

func (*Endpoint) StoreHandler

func (e *Endpoint) StoreHandler(w http.ResponseWriter, req *http.Request)

type EndpointInternal

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

func (*EndpointInternal) AddRouter

func (e *EndpointInternal) AddRouter(addr string, ok *bool) error

type Key

type Key struct {
	Namespace string
	Group     string
	Id        string
}

func (*Key) Str

func (k *Key) Str() string

Jump to

Keyboard shortcuts

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