Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Secret string `json:"secret"` // The master key to use. Target string `json:"target"` // The target key to ban. Banned bool `json:"banned"` // Whether the target should be banned or not. }
Request represents a key ban request.
type Response ¶
type Response struct { Request uint16 `json:"req,omitempty"` Status int `json:"status"` // The status of the response Banned bool `json:"banned"` // Whether the target should be banned or not. }
Response represents a key ban response.
func (*Response) ForRequest ¶
ForRequest sets the request ID in the response for matching
Click to show internal directories.
Click to hide internal directories.