Documentation

Overview

    Code generated by server_generator. DO NOT EDIT. generated version: devel

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type APIError

    type APIError struct {
    	Status int         `json:"status"`
    	Body   interface{} `json:"body"`
    	// contains filtered or unexported fields
    }

      APIError - API Error

      func NewAPIError

      func NewAPIError(status int, bodies ...interface{}) *APIError

        NewAPIError - constructor

        func (*APIError) Error

        func (ae *APIError) Error() string

          Error - makes it compatible with `error` interface.

          func (*APIError) SetError

          func (ae *APIError) SetError(err error) *APIError

            SetError - sets error to APIError.err

            func (*APIError) SetErrorf

            func (ae *APIError) SetErrorf(format string, a ...interface{}) *APIError

              SetErrorf - sets error to APIError.err (use `%w` to wrap the error)

              Source Files

              Directories

              Path Synopsis