Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrCodeUnableParseRequest = 1 ErrCodeUnableCheckIP = 2 ErrCodeEmptyParam = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbfAPI ¶
type AbfAPI struct {
// contains filtered or unexported fields
}
AbfAPI service api.
type AllowResult ¶
type AllowResult struct { CanAuth bool `json:"can-auth"` Login bool `json:"login-check"` Pwd bool `json:"pwd-check"` IP bool `json:"ip-check"` Whitelist bool `json:"whitelist-check"` Blacklist bool `json:"blacklist-check"` }
func (*AllowResult) Build ¶
func (a *AllowResult) Build()
type ErrorResponse ¶
func (ErrorResponse) JSON ¶
func (s ErrorResponse) JSON() string
type SuccessOK ¶
type SuccessOK struct {
Status string `json:"status"`
}
func NewSuccessOK ¶
func NewSuccessOK() SuccessOK
type SuccessResponse ¶
type SuccessResponse struct { Result interface{} `json:"result"` Code int `json:"code"` }
func (SuccessResponse) JSON ¶
func (s SuccessResponse) JSON() string
Click to show internal directories.
Click to hide internal directories.