Documentation ¶
Index ¶
- type Message
- func FromBytes(data []byte) (*Message, error)
- func FromBytesWithTS(data []byte, ts int64) (*Message, error)
- func FromString(data, ts string) (*Message, error)
- func NewEthereumHash(transferID, messageHash, ethereumTxHash string) *Message
- func NewSignature(transferID, receiver, amount, txReimbursement, gasPrice, signature, ... string) *Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
*model.TopicMessage
}
Message serves as a model between Topic Message Watcher and Handler
func FromBytes ¶
FromBytes instantiates new TopicMessage protobuf used internally by the Watchers/Handlers
func FromBytesWithTS ¶
FromBytesWithTS instantiates new TopicMessage protobuf used internally by the Watchers/Handlers
func FromString ¶
FromString instantiates new Topic Message protobuf from string `content` and `timestamp`
func NewEthereumHash ¶
NewEthereumHash instantiates Ethereum Transaction Hash Message struct ready for submission to the Bridge Topic
func NewSignature ¶
func NewSignature(transferID, receiver, amount, txReimbursement, gasPrice, signature, wrappedToken string) *Message
NewSignatureMessage instantiates Signature Message struct ready for submission to the Bridge Topic
Click to show internal directories.
Click to hide internal directories.