Documentation
¶
Index ¶
- type Details
- type Flag
- type Flagger
- type Flags
- type Included
- type Jwz
- type JwzAttributes
- type JwzListResponse
- type JwzResponse
- type Key
- type Links
- type Relation
- type RelationCollection
- type Resource
- type ResourceType
- type VerifyId
- type VerifyIdAttributes
- type VerifyIdListResponse
- type VerifyIdResponse
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) MustJwz ¶
MustJwz - returns Jwz 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) MustVerifyId ¶
MustVerifyId - returns VerifyId 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 Jwz ¶
type Jwz struct {
Key
Attributes JwzAttributes `json:"attributes"`
}
type JwzAttributes ¶
type JwzAttributes struct {
// JWZ from wallet callback
Jwz string `json:"jwz"`
}
type JwzListResponse ¶
type JwzResponse ¶
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 RelationCollection ¶
func (RelationCollection) MarshalJSON ¶
func (r RelationCollection) MarshalJSON() ([]byte, error)
type ResourceType ¶
type ResourceType string
const ( JWZ ResourceType = "jwz" VERIFICATION_ID ResourceType = "verification_id" )
List of ResourceType
type VerifyId ¶
type VerifyId struct {
Key
Attributes VerifyIdAttributes `json:"attributes"`
}