handlers

package
v0.0.0-...-d3db570 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 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
	Append(cmd common.SetRequest) error
	Prepend(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