Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMessage ¶
type IMessage interface { GetHead() IHead GetBody() IBody IsValid(ISettings) bool ToBytes() []byte }
func LoadMessage ¶
Message can be created only with client module.
type ISettings ¶ added in v1.5.7
func NewSettings ¶ added in v1.5.7
type SBodyMessage ¶
type SBodyMessage struct { FPayload string `json:"payload"` FSign string `json:"sign"` FHash string `json:"hash"` FProof string `json:"proof"` }
func (SBodyMessage) GetHash ¶ added in v1.5.6
func (p SBodyMessage) GetHash() []byte
func (SBodyMessage) GetPayload ¶ added in v1.5.6
func (p SBodyMessage) GetPayload() payload.IPayload
func (SBodyMessage) GetProof ¶ added in v1.5.6
func (p SBodyMessage) GetProof() uint64
func (SBodyMessage) GetSign ¶ added in v1.5.6
func (p SBodyMessage) GetSign() []byte
type SHeadMessage ¶
type SHeadMessage struct { FSalt string `json:"salt"` FSession string `json:"session"` FSender string `json:"sender"` }
func (SHeadMessage) GetSalt ¶ added in v1.5.6
func (p SHeadMessage) GetSalt() []byte
func (SHeadMessage) GetSender ¶ added in v1.5.6
func (p SHeadMessage) GetSender() []byte
func (SHeadMessage) GetSession ¶ added in v1.5.6
func (p SHeadMessage) GetSession() []byte
type SMessage ¶
type SMessage struct { FHead SHeadMessage `json:"head"` FBody SBodyMessage `json:"body"` }
Basic structure of transport package.
Click to show internal directories.
Click to hide internal directories.