handlers

package
v0.0.0-...-c6e3130 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(db storage.DB) http.Handler

GetKey returns an http.Handler that can get a key registered by Gorilla mux as "key" in the path. It gets the value of the key from db

func PutKey

func PutKey(db storage.DB) http.Handler

PutKey returns an http.Handler that can set a value for the key registered by Gorilla mux as "key" in the path. It expects the value to be in the body of the PUT request

Types

This section is empty.

Jump to

Keyboard shortcuts

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