Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirectionStrings ¶
func DirectionStrings() []string
DirectionStrings returns a slice of all String values of the enum
Types ¶
type Action ¶
type Action struct {
Tag tag.Tag `json:"tag"`
Type schema.Type `json:"type"`
Platform string `json:"platform,omitempty"`
From string `json:"from"`
To string `json:"to"`
Metadata metadata.Metadata `json:"metadata"`
RelatedURLs []string `json:"related_urls,omitempty"`
}
func (*Action) UnmarshalJSON ¶
type Activities ¶
type Activities []*Activity
func (*Activities) UnmarshalJSON ¶
func (f *Activities) UnmarshalJSON(bytes []byte) error
type Activity ¶
type Activity struct {
ID string `json:"id"`
Owner string `json:"owner,omitempty"`
Network network.Network `json:"network"`
Index uint `json:"index"`
From string `json:"from"`
To string `json:"to"`
Tag tag.Tag `json:"tag"`
Type schema.Type `json:"type"`
Platform string `json:"platform,omitempty"`
Fee *Fee `json:"fee,omitempty"`
Calldata *Calldata `json:"calldata,omitempty"`
TotalActions uint `json:"total_actions"`
Actions []*Action `json:"actions"`
Direction Direction `json:"direction,omitempty"`
Status bool `json:"success"`
Timestamp uint64 `json:"timestamp"`
}
func NewUnknownActivity ¶
type Direction ¶
type Direction uint64
func DirectionString ¶
DirectionString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func DirectionValues ¶
func DirectionValues() []Direction
DirectionValues returns all values of the enum
func (Direction) IsADirection ¶
IsADirection returns "true" if the value is listed in the enum definition. "false" otherwise
func (Direction) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Direction
func (*Direction) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Direction
func (*Direction) UnmarshalParam ¶
Click to show internal directories.
Click to hide internal directories.