set

package
v0.0.0-...-0d2c564 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(srv Setter) http.HandlerFunc

NewHandler returns handler for set key requests.

Types

type Setter

type Setter interface {
	Set(r *http.Request, resp *response) error
}

Setter service for set key requests.

func NewService

func NewService(storage storage.Storage, keyLiveTime time.Duration) Setter

NewService returns initialized service.

Jump to

Keyboard shortcuts

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