handlers

package
v0.0.0-...-b29f263 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Set(cmd common.SetRequest) error
	Add(cmd common.SetRequest) error
	Replace(cmd common.SetRequest) error
	Get(cmd common.GetRequest) (<-chan common.GetResponse, <-chan error)
	GetE(cmd common.GetRequest) (<-chan common.GetEResponse, <-chan error)
	GAT(cmd common.GATRequest) (common.GetResponse, error)
	Delete(cmd common.DeleteRequest) error
	Touch(cmd common.TouchRequest) error
	Close() error
}

func NilHandler

func NilHandler() (Handler, error)

NilHandler is used as a placeholder for when there is no handler needed. Since the Server API is a composition of a few things, including Handlers, there needs to be a placeholder for when it's not needed.

type HandlerConst

type HandlerConst func() (Handler, error)

Directories

Path Synopsis
std

Jump to

Keyboard shortcuts

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