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 ¶
View Source
const ( ErrCodeInvalid = 40001 ErrCodeDup = 40002 ErrCodeFailed = 40003 ErrCodeNotFound = 40004 ErrCodeSaveConfigFailed = 40005 )
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 ¶
- api.go
- config.go
- config_admission.go
- config_auther.go
- config_bypass.go
- config_chain.go
- config_conn_limiter.go
- config_hop.go
- config_hosts.go
- config_ingress.go
- config_limiter.go
- config_observer.go
- config_rate_limiter.go
- config_recorder.go
- config_resolver.go
- config_router.go
- config_sd.go
- config_service.go
- doc.go
- error.go
- middleware.go
Click to show internal directories.
Click to hide internal directories.