Documentation ¶
Index ¶
- type Post
- func (z *Post) DecodeMsg(dc *msgp.Reader) (err error)
- func (p *Post) Deserialize(bts []byte) error
- func (z *Post) EncodeMsg(en *msgp.Writer) (err error)
- func (p *Post) Hash() (hash.Hash, error)
- func (p *Post) JSON() error
- func (z *Post) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Post) Msgsize() (s int)
- func (p *Post) ReInit() error
- func (p *Post) Serialize() ([]byte, error)
- func (p *Post) Type() string
- func (z *Post) UnmarshalMsg(bts []byte) (o []byte, err error)
- func (p *Post) Verify() (*openpgp.Entity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct { Content string `json:"content"` Pubkey *openpgp.Entity `msg:"-" json:"-"` PubkeyStr string `json:"pubkey"` Signature string `json:"signature"` Timestamp int64 `json:"date"` }
Post contains all information needed for a complete post representation
func (*Post) Deserialize ¶
Deserialize implements tangle/datastore.serializable
func (*Post) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*Post) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Post) UnmarshalMsg ¶
UnmarshalMsg implements msgp.Unmarshaler
Click to show internal directories.
Click to hide internal directories.