Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code *string `json:"code"`
Date *string `json:"date"`
Message *string `json:"-"`
RawMessage *json.RawMessage `json:"message"` // sometimes a string, sometimes an object :/
ClientRequestId *string `json:"client-request-id"`
RequestId *string `json:"request-id"`
InnerError *Error `json:"innerError"` // nested errors
}
Error is used to unmarshal an API error message.
func (*Error) UnmarshalJSON ¶
type OData ¶
type OData struct {
Context *string `json:"@odata.context"`
MetadataEtag *string `json:"@odata.metadataEtag"`
Type *string `json:"@odata.type"`
Count *string `json:"@odata.count"`
NextLink *string `json:"@odata.nextLink"`
Delta *string `json:"@odata.delta"`
DeltaLink *string `json:"@odata.deltaLink"`
Id *string `json:"@odata.id"`
Etag *string `json:"@odata.etag"`
Error *Error `json:"-"`
Value *[]json.RawMessage `json:"value"`
}
OData is used to unmarshall OData metadata from an API response.
func (*OData) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.