Documentation ¶
Index ¶
- type Claim
- type ClaimAttributes
- type ClaimListResponse
- type ClaimResponse
- type Details
- type DigestAttribute
- type EncapsulatedData
- type Flag
- type Flagger
- type Flags
- type GistData
- type GistDataAttributes
- type GistDataListResponse
- type GistDataResponse
- type GistProof
- type Included
- type Key
- type Links
- type PrivateKeyElement
- type Relation
- type RelationCollection
- type Resource
- type ResourceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claim ¶
type Claim struct { Key Attributes ClaimAttributes `json:"attributes"` }
type ClaimAttributes ¶
type ClaimListResponse ¶
type ClaimResponse ¶
type Details ¶
type Details json.RawMessage
func (Details) MarshalJSON ¶
MarshalJSON - casts Details to []byte
func (*Details) UnmarshalJSON ¶
UnmarshalJSON - casts data to Details
type DigestAttribute ¶ added in v0.8.7
type DigestAttribute struct { ID asn1.ObjectIdentifier Digest []asn1.RawValue `asn1:"set"` }
type EncapsulatedData ¶
type GistData ¶ added in v0.5.0
type GistData struct { Key Attributes GistDataAttributes `json:"attributes"` }
type GistDataAttributes ¶ added in v0.5.0
type GistDataListResponse ¶ added in v0.5.0
type GistDataResponse ¶ added in v0.5.0
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) MustClaim ¶
MustClaim - returns Claim 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) MustGistData ¶ added in v0.5.0
MustGistData - returns GistData 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 ¶
UnmarshalJSON - 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 PrivateKeyElement ¶ added in v0.9.15
type RelationCollection ¶
func (RelationCollection) MarshalJSON ¶
func (r RelationCollection) MarshalJSON() ([]byte, error)
type ResourceType ¶
type ResourceType string
const ( CLAIMS ResourceType = "claims" GIST_DATAS ResourceType = "gist_datas" )
List of ResourceType