Documentation
¶
Index ¶
Constants ¶
View Source
const ( UrlParameter_ForumId = "f" UrlParameter_ThreadId = "t" UrlParameter_PageNumber = "p" )
View Source
const ( ErrRequestIsNotSet = "request is not set" ErrUnsupportedParameter = "unsupported parameter: %v" ErrDuplicateParameter = "duplicate parameter: %v" ErrMultipleObjectTypesRequested = "multiple object types were requested" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockIPAddressParams ¶
type BlockIPAddressParams struct { cmr.CommonParams // IP address of a client to block. UserIPA string `json:"userIPA"` // Block time in seconds. // This is a period for which the specified IP address will be blocked. If // for some reason a record with the specified IP address already exists, // this time will be added to an already existing value. BlockTimeSec uint `json:"blockTimeSec"` }
type BlockIPAddressResult ¶
type BlockIPAddressResult struct { cmr.CommonResult OK bool `json:"ok"` }
type IsIPAddressBlockedParams ¶
type IsIPAddressBlockedParams struct { cmr.CommonParams // IP address of a client to check. UserIPA string `json:"userIPA"` }
type IsIPAddressBlockedResult ¶
type IsIPAddressBlockedResult struct { cmr.CommonResult IsBlocked bool `json:"isBlocked"` }
type PingParams ¶
type PingParams = cmr.PingParams
type PingResult ¶
type PingResult = cmr.PingResult
type ShowDiagnosticDataParams ¶
type ShowDiagnosticDataParams struct{}
type ShowDiagnosticDataResult ¶
type ShowDiagnosticDataResult struct { cmr.CommonResult cmr.RequestsCount }
type UrlParameter ¶
UrlParameter is a set of URL query parameters.
func NewUrlParameterFromHttpRequest ¶
func NewUrlParameterFromHttpRequest(req *http.Request) (up *UrlParameter, err error)
Click to show internal directories.
Click to hide internal directories.