api

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeysHandle added in v1.1.0

func GetKeysHandle(w http.ResponseWriter, req *http.Request)

func GetValueHandle added in v1.1.0

func GetValueHandle(w http.ResponseWriter, req *http.Request)

func Run

func Run()

func RunTLS

func RunTLS(certFile, keyFile string)

func SaveValueHandle added in v1.1.0

func SaveValueHandle(w http.ResponseWriter, req *http.Request)

func SendRes added in v1.1.0

func SendRes(w http.ResponseWriter, err error, data interface{})

Types

type HTTPAuthMiddle added in v1.2.0

type HTTPAuthMiddle struct {
	// contains filtered or unexported fields
}

func AuthMdiddleware added in v1.2.0

func AuthMdiddleware(username, password string) *HTTPAuthMiddle

func (*HTTPAuthMiddle) Middleware added in v1.2.0

func (m *HTTPAuthMiddle) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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