Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateResponse ¶
func ValidateResponse(actual, expected interface{}) error
ValidateResponse validates the response against expected values Returns nil if validation passes, error otherwise
Types ¶
type Client ¶
Client is a JSON-RPC 2.0 HTTP client
type Error ¶
type Error struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
Error represents a JSON-RPC 2.0 error
Click to show internal directories.
Click to hide internal directories.