api

package
v0.0.0-...-ae13d62 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelCache

func DelCache(w http.ResponseWriter, c *cache.Cache, params []string)

func FailResult

func FailResult(err string) []byte

func GetCache

func GetCache(w http.ResponseWriter, c *cache.Cache, params []string)

func NoCache

func NoCache(w http.ResponseWriter, params []string)

func PingCache

func PingCache(w http.ResponseWriter)

func SetCache

func SetCache(w http.ResponseWriter, params []string, c *cache.Cache)

func SuccessResult

func SuccessResult(data string) []byte

Types

type Result

type Result struct {
	Code int    `json:"code"`
	Data string `json:"data"`
	Err  string `json:"err"`
}

Jump to

Keyboard shortcuts

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