Documentation ¶
Overview ¶
Documentation of Web API.
Schemes: https, http BasePath: / Version: 1.0.0 Consumes: - application/json Produces: - application/json SecurityDefinitions: basicAuth: type: basic
swagger:meta
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalid = &Error{statusCode: http.StatusBadRequest, Code: 40001, Msg: "object invalid"} ErrDup = &Error{statusCode: http.StatusBadRequest, Code: 40002, Msg: "object duplicated"} ErrCreate = &Error{statusCode: http.StatusConflict, Code: 40003, Msg: "object creation failed"} ErrNotFound = &Error{statusCode: http.StatusBadRequest, Code: 40004, Msg: "object not found"} ErrSave = &Error{statusCode: http.StatusInternalServerError, Code: 40005, Msg: "save config failed"} )
Functions ¶
Types ¶
type Error ¶
type Error struct { Code int `json:"code"` Msg string `json:"msg"` // contains filtered or unexported fields }
Error is an api error.
type Option ¶
type Option func(*options)
func AccessLogOption ¶
func AutherOption ¶
func AutherOption(auther auth.Authenticator) Option
func PathPrefixOption ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.