Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProfileModel ¶
Types ¶
type Extension ¶
type Extension struct { Title string `cbor:"t" json:"title"` // extension title Properties map[string]interface{} `cbor:"ps" json:"properties"` DataID *ids.DataID `cbor:"id,omitempty" json:"did,omitempty"` // optional data id ModelID *ids.ModelID `cbor:"m,omitempty" json:"mid,omitempty"` // optional model id }
type Extensions ¶
type Extensions []*Extension
func (Extensions) SyntacticVerify ¶
func (es Extensions) SyntacticVerify() error
SyntacticVerify verifies that Extensions is well-formed.
type Name ¶
type Name struct { // name should be Unicode form Name string `cbor:"n" json:"name"` // optional, linked (ProfileService) data id Linked *ids.DataID `cbor:"l,omitempty" json:"linked,omitempty"` Records []string `cbor:"rs" json:"records"` // DNS resource records Extensions Extensions `cbor:"es" json:"extensions"` // external assignment fields DataID ids.DataID `cbor:"-" json:"did"` // contains filtered or unexported fields }
func (*Name) SyntacticVerify ¶
SyntacticVerify verifies that a *Name is well-formed.
type Profile ¶
type Profile struct { Type ProfileType `cbor:"t" json:"type"` // Thing, Person, Organization... Name string `cbor:"n" json:"name"` // Thing property Desc string `cbor:"d" json:"description"` // Thing property Image string `cbor:"i" json:"image"` // Thing property, relay url URL string `cbor:"u" json:"url"` // Thing property, relay url // follow other ProfileService data id Follows ids.IDList[ids.DataID] `cbor:"fs" json:"follows"` // optional, other ProfileService data id Members ids.IDList[ids.DataID] `cbor:"ms,omitempty" json:"members,omitempty"` Extensions Extensions `cbor:"es" json:"extensions"` // external assignment fields DataID ids.DataID `cbor:"-" json:"did"` // contains filtered or unexported fields }
func (*Profile) SyntacticVerify ¶
SyntacticVerify verifies that a *Profile is well-formed.
type ProfileType ¶
type ProfileType uint16
func (ProfileType) MarshalJSON ¶
func (pt ProfileType) MarshalJSON() ([]byte, error)
func (ProfileType) String ¶
func (pt ProfileType) String() string
Click to show internal directories.
Click to hide internal directories.