Documentation ¶
Index ¶
- func GetKeysHandle(w http.ResponseWriter, req *http.Request)
- func GetValueHandle(w http.ResponseWriter, req *http.Request)
- func Run()
- func RunTLS(certFile, keyFile string)
- func SaveValueHandle(w http.ResponseWriter, req *http.Request)
- func SendRes(w http.ResponseWriter, err error, data interface{})
- type HTTPAuthMiddle
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 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
Click to show internal directories.
Click to hide internal directories.