Documentation ¶
Index ¶
- type CreateMerkleTreeRequest
- type CreateMerkleTreeRequestAttributes
- type CreateMerkleTreeRequestListResponse
- type CreateMerkleTreeRequestResponse
- type Details
- type Flag
- type Flagger
- type Flags
- type Included
- func (c *Included) Add(includes ...Resource)
- func (c Included) MarshalJSON() ([]byte, error)
- func (c *Included) MustCreateMerkleTreeRequest(key Key) *CreateMerkleTreeRequest
- func (c *Included) MustInclusionProof(key Key) *InclusionProof
- func (c *Included) MustInclusionProofRequest(key Key) *InclusionProofRequest
- func (c *Included) MustMerkleRootHash(key Key) *MerkleRootHash
- func (c *Included) MustPem(key Key) *Pem
- func (c *Included) UnmarshalJSON(data []byte) error
- type InclusionProof
- type InclusionProofAttributes
- type InclusionProofListResponse
- type InclusionProofRequest
- type InclusionProofRequestAttributes
- type InclusionProofRequestListResponse
- type InclusionProofRequestResponse
- type InclusionProofResponse
- type Key
- type Links
- type MerkleRootHash
- type MerkleRootHashAttributes
- type MerkleRootHashListResponse
- type MerkleRootHashResponse
- type Pem
- type PemAttributes
- type PemListResponse
- type PemResponse
- 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 CreateMerkleTreeRequest ¶
type CreateMerkleTreeRequest struct { Key Attributes CreateMerkleTreeRequestAttributes `json:"attributes"` }
type CreateMerkleTreeRequestAttributes ¶
type CreateMerkleTreeRequestAttributes struct {
PemBlocks []Pem `json:"pem_blocks"`
}
type CreateMerkleTreeRequestListResponse ¶
type CreateMerkleTreeRequestListResponse struct { Data []CreateMerkleTreeRequest `json:"data"` Included Included `json:"included"` Links *Links `json:"links"` }
type CreateMerkleTreeRequestResponse ¶
type CreateMerkleTreeRequestResponse struct { Data CreateMerkleTreeRequest `json:"data"` Included Included `json:"included"` }
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) MustCreateMerkleTreeRequest ¶
func (c *Included) MustCreateMerkleTreeRequest(key Key) *CreateMerkleTreeRequest
MustCreateMerkleTreeRequest - returns CreateMerkleTreeRequest 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) MustInclusionProof ¶
func (c *Included) MustInclusionProof(key Key) *InclusionProof
MustInclusionProof - returns InclusionProof 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) MustInclusionProofRequest ¶
func (c *Included) MustInclusionProofRequest(key Key) *InclusionProofRequest
MustInclusionProofRequest - returns InclusionProofRequest 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) MustMerkleRootHash ¶
func (c *Included) MustMerkleRootHash(key Key) *MerkleRootHash
MustMerkleRootHash - returns MerkleRootHash 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) MustPem ¶
MustPem - returns Pem 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 InclusionProof ¶
type InclusionProof struct { Key Attributes InclusionProofAttributes `json:"attributes"` }
type InclusionProofListResponse ¶
type InclusionProofListResponse struct { Data []InclusionProof `json:"data"` Included Included `json:"included"` Links *Links `json:"links"` }
type InclusionProofRequest ¶
type InclusionProofRequest struct { Key Attributes InclusionProofRequestAttributes `json:"attributes"` }
type InclusionProofRequestAttributes ¶
type InclusionProofRequestAttributes struct { MerkleRootHash MerkleRootHash `json:"merkle_root_hash"` PemData *Pem `json:"pem_data,omitempty"` }
type InclusionProofRequestListResponse ¶
type InclusionProofRequestListResponse struct { Data []InclusionProofRequest `json:"data"` Included Included `json:"included"` Links *Links `json:"links"` }
type InclusionProofRequestResponse ¶
type InclusionProofRequestResponse struct { Data InclusionProofRequest `json:"data"` Included Included `json:"included"` }
type InclusionProofResponse ¶
type InclusionProofResponse struct { Data InclusionProof `json:"data"` Included Included `json:"included"` }
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 MerkleRootHash ¶
type MerkleRootHash struct { Key Attributes MerkleRootHashAttributes `json:"attributes"` }
type MerkleRootHashAttributes ¶
type MerkleRootHashAttributes struct {
Hash string `json:"hash"`
}
type MerkleRootHashListResponse ¶
type MerkleRootHashListResponse struct { Data []MerkleRootHash `json:"data"` Included Included `json:"included"` Links *Links `json:"links"` }
type MerkleRootHashResponse ¶
type MerkleRootHashResponse struct { Data MerkleRootHash `json:"data"` Included Included `json:"included"` }
type Pem ¶
type Pem struct { Key Attributes PemAttributes `json:"attributes"` }
type PemAttributes ¶
type PemAttributes struct {
PemBlock string `json:"pem_block"`
}
type PemListResponse ¶
type PemResponse ¶
type RelationCollection ¶
func (RelationCollection) MarshalJSON ¶
func (r RelationCollection) MarshalJSON() ([]byte, error)
type ResourceType ¶
type ResourceType string
const ( CREATE_MERKLE_TREE_REQUEST_KEY ResourceType = "CreateMerkleTreeRequestKey" INCLUSION_PROOF ResourceType = "InclusionProof" INCLUSION_PROOF_REQUEST ResourceType = "InclusionProofRequest" MERKLE_ROOT_HASH ResourceType = "MerkleRootHash" PEM ResourceType = "PEM" )
List of ResourceType
Source Files ¶
- db.go
- flag.go
- included.go
- links.go
- model_create_merkle_tree_request.go
- model_create_merkle_tree_request_attributes.go
- model_details.go
- model_inclusion_proof.go
- model_inclusion_proof_attributes.go
- model_inclusion_proof_request.go
- model_inclusion_proof_request_attributes.go
- model_key.go
- model_merkle_root_hash.go
- model_merkle_root_hash_attributes.go
- model_pem.go
- model_pem_attributes.go
- model_relation.go
- model_relation_collection.go
- model_resource_type.go