Documentation ¶
Index ¶
- type BaseAPI
- func (b *BaseAPI) Endpoint() string
- func (b *BaseAPI) Error() error
- func (b *BaseAPI) Method() string
- func (b *BaseAPI) RawResponse() []byte
- func (b *BaseAPI) RequestObject() interface{}
- func (b *BaseAPI) ResponseObject() interface{}
- func (b *BaseAPI) SetError(err error)
- func (b *BaseAPI) SetRawResponse(rawResponse []byte)
- func (b *BaseAPI) SetResponseObject(res interface{})
- func (b *BaseAPI) SetStatusCode(statusCode int)
- func (b *BaseAPI) StatusCode() int
- type NSXApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAPI ¶
type BaseAPI struct {
// contains filtered or unexported fields
}
BaseAPI - Base API struct.
func NewBaseAPI ¶
func NewBaseAPI(method string, endpoint string, requestObject interface{}, responseObject interface{}) *BaseAPI
NewBaseAPI - Returns a new object of the BaseAPI.
func (*BaseAPI) RawResponse ¶
RawResponse - Returns the rawResponse object as byte type.
func (*BaseAPI) RequestObject ¶
func (b *BaseAPI) RequestObject() interface{}
RequestObject - Returns the request object of the BaseAPI
func (*BaseAPI) ResponseObject ¶
func (b *BaseAPI) ResponseObject() interface{}
ResponseObject - Returns the ResponseObject interface.
func (*BaseAPI) SetRawResponse ¶
SetRawResponse - Sets the rawResponse on api object.
func (*BaseAPI) SetResponseObject ¶
func (b *BaseAPI) SetResponseObject(res interface{})
SetResponseObject - Sets the responseObject on api.
func (*BaseAPI) SetStatusCode ¶
SetStatusCode - Sets the statusCode from api object.
func (*BaseAPI) StatusCode ¶
StatusCode - Returns the status code of the api.
Click to show internal directories.
Click to hide internal directories.