Documentation ¶
Index ¶
- type Details
- type Flag
- type Flagger
- type Flags
- type Included
- type Key
- type Links
- type NftPrice
- type NftPriceAttributes
- type NftPriceListResponse
- type NftPriceResponse
- type OffsetPageParams
- type Platform
- type PlatformAttributes
- type PlatformListResponse
- type PlatformResponse
- type Price
- type PriceAttributes
- type PriceListResponse
- type PriceResponse
- type Relation
- type RelationCollection
- type Resource
- type ResourceType
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Details ¶
type Details json.RawMessage
func (Details) MarshalJSON ¶
MarshalJSON - casts Details to []byte
func (*Details) UnmarshalJSON ¶
UnmarshalJSON - casts data to Details
type Included ¶
type Included struct {
// contains filtered or unexported fields
}
Included - an array of Resource objects that are related to the primary data and/or each other (“included resources”).
func (Included) MarshalJSON ¶
MarshalJSON - marshals include collection as array of json objects
func (*Included) MustNftPrice ¶
MustNftPrice - returns NftPrice from include collection. if entry with specified key does not exist - returns nil if entry with specified key exists but type or ID mismatches - panics
func (*Included) MustPlatform ¶
MustPlatform - returns Platform from include collection. if entry with specified key does not exist - returns nil if entry with specified key exists but type or ID mismatches - panics
func (*Included) MustPrice ¶
MustPrice - returns Price from include collection. if entry with specified key does not exist - returns nil if entry with specified key exists but type or ID mismatches - panics
func (*Included) UnmarshalJSON ¶
UmarshalJSON - unmarshal array of json objects into include collection
type Key ¶
type Key struct { ID string `json:"id"` Type ResourceType `json:"type"` }
func NewKeyInt64 ¶
func NewKeyInt64(id int64, resourceType ResourceType) Key
func (Key) AsRelation ¶
type NftPrice ¶
type NftPrice struct { Key Attributes NftPriceAttributes `json:"attributes"` }
type NftPriceAttributes ¶
type NftPriceListResponse ¶
type NftPriceResponse ¶
type OffsetPageParams ¶
type Platform ¶
type Platform struct { Key Attributes PlatformAttributes `json:"attributes"` }
type PlatformAttributes ¶
type PlatformListResponse ¶
type PlatformResponse ¶
type Price ¶
type Price struct { Key Attributes PriceAttributes `json:"attributes"` }
type PriceAttributes ¶
type PriceListResponse ¶
type PriceResponse ¶
type RelationCollection ¶
func (RelationCollection) MarshalJSON ¶
func (r RelationCollection) MarshalJSON() ([]byte, error)
type ResourceType ¶
type ResourceType string
const ( NFT_PRICE ResourceType = "nft-price" PLATFORMS ResourceType = "platforms" PRICES ResourceType = "prices" )
List of ResourceType
Source Files ¶
- db.go
- flag.go
- included.go
- model_details.go
- model_key.go
- model_links.go
- model_nft_price.go
- model_nft_price_attributes.go
- model_platform.go
- model_platform_attributes.go
- model_price.go
- model_price_attributes.go
- model_relation.go
- model_relation_collection.go
- model_resource_type.go
- model_token.go
- offset_params.go