Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
func (*Message) Decrypt ¶
func (msg *Message) Decrypt(keys *cryptography.KeyPair) (*PlainMessage, error)
type PlainMessage ¶
type PlainMessage struct { Message *protobuf.DataMessage From string }
func MakePlain ¶
func MakePlain(data string) *PlainMessage
func (*PlainMessage) Body ¶
func (plain *PlainMessage) Body() *string
func (*PlainMessage) Encrypt ¶
func (msg *PlainMessage) Encrypt(keys *cryptography.KeyPair, to string) ([]byte, error)
func (*PlainMessage) ReplyTag ¶
func (plain *PlainMessage) ReplyTag() []byte
func (*PlainMessage) When ¶
func (plain *PlainMessage) When() time.Time
Click to show internal directories.
Click to hide internal directories.