Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { Message *MessageData `json:"message,omitempty"` Connection *MsgConnection `json:"connection,omitempty"` FromDID string `json:"fromdid,omitempty"` ToDID string `json:"todid,omitempty"` }
type MessageData ¶
type MsgConnection ¶
type Packager ¶
type Packager interface { //PackConnection PackConnection(data []byte, did string) (*MsgConnection, error) //UnPackConnection UnPackConnection(data *Envelope) (*MsgConnection, error) //PackMessage PackMessage(envelope *MessageData, destDid string) (*MessageData, error) //UnpackMessage UnpackMessage(data *MessageData, sourceDid string) (*MessageData, error) //PackData PackData(envelope *Envelope) ([]byte, error) //UnPackData UnPackData(enData []byte) (*Envelope, error) }
Click to show internal directories.
Click to hide internal directories.