Documentation ¶
Index ¶
Constants ¶
View Source
const ( SE_IPFS = "IPFS" SE_STORAGE = "STORAGE" )
Variables ¶
This section is empty.
Functions ¶
func GetVerificationBuffer ¶
func GetVerificationBuffer(msg *BaseMessage) []byte
Types ¶
type BaseMessage ¶
type BaseMessage struct { ID map[string]string `json:"_id"` Channel string `json:"channel"` Sender string `json:"sender"` Chain ChainType `json:"chain"` Type MessageType `json:"type"` Time float64 `json:"time"` ItemType ItemType `json:"item_type,omitempty"` ItemContent string `json:"item_content"` ItemHash string `json:"item_hash"` Signature string `json:"signature"` Confirmations []MessageConfirmation `json:"confirmations,omitempty"` Confirmed bool `json:"confirmed"` Size uint64 `json:"size"` HashType string `json:"hash_type,omitempty"` Content BaseMessageContent `json:"content,omitempty"` }
type BaseMessageContent ¶
type MessageConfirmation ¶
type MessageType ¶
type MessageType = string
const ( MT_AGGREGATE MessageType = "AGGREGATE" MT_POST MessageType = "POST" MT_STORE MessageType = "STORE" )
type StorageEngine ¶
type StorageEngine = string
Click to show internal directories.
Click to hide internal directories.