Documentation ¶
Index ¶
- Constants
- func Decode(id string) (interface{}, error)
- func GetUVarInt(input []byte) (uint64, []byte, int, error)
- func IsStreamID(input string) bool
- func PutUVarInt(code uint64) []byte
- type API
- type CeramicAnchorProof
- type CeramicGetResponse
- type CeramicLogEntry
- type CeramicStreamMetadata
- type CeramicStreamNext
- type CeramicStreamState
- type CommitID
- type Common
- type Opt
- type RecordEntry
- type StreamID
Constants ¶
View Source
const ( GITCOIN_PASSPORT_CERAMIC_ENDPOINT = "ceramic.passport-iam.gitcoin.co" MAINNET_COMMUNITY_CERAMIC_ENDPOINT = "gateway.ceramic.network" CLAY_COMMUNITY_CERAMIC_ENDPOINT = "gateway-clay.ceramic.network" )
View Source
const ( COMMIT_GENESIS uint = iota COMMIT_SIGNED COMMIT_ANCHOR )
View Source
const ( SIGNATURE_STATUS_GENESIS uint = iota SIGNATURE_STATUS_PARTIAL SIGNATURE_STATUS_SIGNED )
Variables ¶
This section is empty.
Functions ¶
func GetUVarInt ¶
GetUVarInt returns the uint, rest of the buffer, bytes consumed, and error https://github.com/multiformats/unsigned-varint
func IsStreamID ¶
IsStreamID returns whether the given input is a valid StreamID
func PutUVarInt ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API interacts with Ceramic API gateway
type CeramicAnchorProof ¶
type CeramicGetResponse ¶
type CeramicGetResponse struct { StreamID string `json:"streamId"` State CeramicStreamState `json:"state"` }
type CeramicLogEntry ¶
type CeramicStreamMetadata ¶
type CeramicStreamNext ¶
type CeramicStreamNext struct { Content *json.RawMessage `json:"content,omitempty"` Controllers []string `json:"controllers,omitempty"` Metadata *CeramicStreamMetadata `json:"metadata,omitempty"` }
type CeramicStreamState ¶
type CeramicStreamState struct { AnchorProof *CeramicAnchorProof `json:"anchorProof,omitempty"` Content json.RawMessage `json:"content"` Log []CeramicLogEntry `json:"log"` Metadata CeramicStreamMetadata `json:"metadata"` Next *CeramicStreamNext `json:"next,omitempty"` SignatureStatus uint `json:"signature"` Type int `json:"type"` }
type CommitID ¶
type CommitID struct { Entries []RecordEntry Common }
type Common ¶
StreamID supports common operations with StreamID https://github.com/ceramicnetwork/CIP/blob/main/CIPs/CIP-59/CIP-59.md
type RecordEntry ¶
type StreamID ¶
type StreamID struct { Entry RecordEntry Common }
Click to show internal directories.
Click to hide internal directories.