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) String ¶ added in v0.30.2
String returns the time formatted using the format string
func (*EpochTime) UnmarshalJSON ¶
UnmarshalJSON is responsible for unmarshaling the EpochTime type.
type MapStringInterface ¶ added in v0.12.0
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 ¶ added in v0.12.0
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.