Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Write ¶
func Write(rw http.ResponseWriter, status int, message string, args ...interface{})
Write is a helper for writing ResponseJSON to response writer
func WriteJSON ¶
func WriteJSON(rw http.ResponseWriter, payload interface{}, status int)
Types ¶
type CreateKVRequest ¶
type HTTPAPI ¶
type HTTPAPI struct { Options *Options // contains filtered or unexported fields }
func (*HTTPAPI) Auth ¶
func (a *HTTPAPI) Auth(handler http.HandlerFunc) http.HandlerFunc
Auth is an auth middleware
type ResponseJSON ¶
Click to show internal directories.
Click to hide internal directories.