weblru

package
v0.0.0-...-9067a78 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 6 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 struct {
	// contains filtered or unexported fields
}

func New

func New(s int) *Handler

func (*Handler) Add

func (*Handler) Get

func (*Handler) Remove

func (h *Handler) Remove(w http.ResponseWriter, r *http.Request, p httprouter.Params)

type Request

type Request struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

func (Request) Valid

func (r Request) Valid() bool

Jump to

Keyboard shortcuts

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