Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Post ¶
func (c *Client) Post( payload EndpointPayloadMarshaler, response json.Unmarshaler, ) error
type FieldError ¶
type Payload ¶
type Payload interface { // Validate values of all fields. Validate() []FieldError }
Payload send as request body.
type ValidationError ¶
type ValidationError struct { // Name of the payload the validation failed on. Name string // FieldErrors encountered during validation. FieldErrors []FieldError }
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.