Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EpochTime ¶
EpochTime is a type used for unmarshaling timestamps represented in epoch time. Its underlying type is time.Time.
func (EpochTime) MarshalJSON ¶
MarshalJSON is responsible for marshaling the EpochTime type.
func (*EpochTime) UnmarshalJSON ¶
UnmarshalJSON is responsible for unmarshaling the EpochTime type.
type MapStringInterface ¶
type MapStringInterface map[string]interface{}
MapStringInterface is used for custom unmarshaling of fields that have potentially dynamic types. E.g. when a field can be a string or an object/map
func (*MapStringInterface) UnmarshalJSON ¶
func (c *MapStringInterface) UnmarshalJSON(data []byte) error
UnmarshalJSON is a custom unmarshal method to guard against fields that can have more than one type returned from an API.
Click to show internal directories.
Click to hide internal directories.