Documentation ¶
Overview ¶
DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MultipleOf ¶
func NewAPIError ¶
NewAPIError creates new APIError object. If data is nil, it raw message won't be parsed.
Types ¶
type APIError ¶
type APIError struct { Code int // http status code RawMessage []byte // raw response body Message interface{} // parsed response body, if possible, it might be nil }
APIError represents any error condition that returned by API server. i.e. non 2xx status code
type DateOnly ¶
DateOnly represent RAML date-only type The "full-date" notation of RFC3339, namely yyyy-mm-dd. Does not support time or time zone-offset notation.
func (*DateOnly) MarshalJSON ¶
MarshalJSON override marshalJSON
func (*DateOnly) UnmarshalJSON ¶
UnmarshalJSON override unmarshalJSON
type DateTime ¶
DateTime is timestamp in "date-time" format defined in RFC3339
func (*DateTime) MarshalJSON ¶
MarshalJSON override marshalJSON
func (*DateTime) UnmarshalJSON ¶
UnmarshalJSON override unmarshalJSON
type DateTimeRFC2616 ¶
DateTimeRFC2616 is timestamp in RFC2616 format
func (*DateTimeRFC2616) MarshalJSON ¶
func (dt *DateTimeRFC2616) MarshalJSON() ([]byte, error)
MarshalJSON override marshalJSON
func (*DateTimeRFC2616) String ¶
func (dt *DateTimeRFC2616) String() string
String returns it's string representation
func (*DateTimeRFC2616) UnmarshalJSON ¶
func (dt *DateTimeRFC2616) UnmarshalJSON(b []byte) error
UnmarshalJSON override unmarshalJSON
type DatetimeOnly ¶
DatetimeOnly represent RAML datetime-only type Combined date-only and time-only with a separator of "T", namely yyyy-mm-ddThh:mm:ss[.ff...]. Does not support a time zone offset.
func (*DatetimeOnly) MarshalJSON ¶
func (dto *DatetimeOnly) MarshalJSON() ([]byte, error)
MarshalJSON override marshalJSON
func (*DatetimeOnly) String ¶
func (dto *DatetimeOnly) String() string
String returns string representation
func (*DatetimeOnly) UnmarshalJSON ¶
func (dto *DatetimeOnly) UnmarshalJSON(b []byte) error
UnmarshalJSON override unmarshalJSON
type TimeOnly ¶
TimeOnly represent RAML time-only type. The "partial-time" notation of RFC3339, namely hh:mm:ss[.ff...]. Does not support date or time zone-offset notation.
func (*TimeOnly) MarshalJSON ¶
MarshalJSON override marshalJSON
func (*TimeOnly) UnmarshalJSON ¶
UnmarshalJSON override unmarshalJSON