Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
The underlying API performer
type ApiParameters ¶
type ApiParameters interface { // Make HTTP request for specific URL. RequestFor(ctx context.Context, url string) (req *http.Request, err error) }
All API paramaeters should implement this interface.
type ApiResponse ¶
type ApiResponse struct { // Success flag. Ok bool `json:"ok"` // Result data when successful. Result json.RawMessage `json:"result"` // Error code. ErrorCode int `json:"error_code"` // Human-readable error description. Description string `json:"description"` // Extend information for unsuccessful request. Parameters *ResponseParameters `json:"parameters"` }
type ResponseParameters ¶
Click to show internal directories.
Click to hide internal directories.