Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentMetaToJSON ¶
func ContentMetaToJSON(meta ContentMetadata) (string, error)
ContentMetaToJSON serialize content metadata to json string
Types ¶
type ContentMetadata ¶
type ContentMetadata struct { Hash string `json:"hash,required"` Date int64 `json:"date,required"` Owner string `json:"owner,required"` }
ContentMetadata represents metadata of a content
func ContentMetaFromJSON ¶
func ContentMetaFromJSON(metaString string) (meta ContentMetadata, err error)
ContentMetaFromJSON deserialize content metadata from json string
type DBRedis ¶
type DBRedis struct {
// contains filtered or unexported fields
}
DBRedis is a Redis storage implementation of store interface
func NewDBRedis ¶
NewDBRedis create a new DBRedis instance and connect to it. Pass nil as url to connect to local redis server running on default.
type SkillMetadata ¶
type SkillMetadata struct { Hash string `json:"hash,required"` Date int64 `json:"date,required"` Price uint32 `json:"price,required"` Publisher string `json:"publisher,required"` Platform string `json:"platform,required"` Consumer string `json:"consumer,required"` }
SkillMetadata represents metadata of a skill contract
Click to show internal directories.
Click to hide internal directories.