Documentation ¶ Index ¶ func DeleteMessage(message Message) error func GetMessageKeys() (keys []string) type Message func CreateFromRaw(from string, to []string, data []byte) (Message, bool) func FetchMessage(ID string) (Message, bool) func LoadFromJSON(data []byte) (Message, error) func (m *Message) Save() error func (m *Message) ToBytes() []byte Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DeleteMessage ¶ func DeleteMessage(message Message) error func GetMessageKeys ¶ func GetMessageKeys() (keys []string) Types ¶ type Message ¶ type Message struct { ID string `json:"messageId"` From string `json:"from"` To []string `json:"to"` Data []byte `json:"data"` ProvidersTried []string `json:"providersTried"` LastSentAt time.Time `json:"lastSentAt"` } func CreateFromRaw ¶ func CreateFromRaw(from string, to []string, data []byte) (Message, bool) func FetchMessage ¶ func FetchMessage(ID string) (Message, bool) func LoadFromJSON ¶ func LoadFromJSON(data []byte) (Message, error) func (*Message) Save ¶ func (m *Message) Save() error func (*Message) ToBytes ¶ func (m *Message) ToBytes() []byte Source Files ¶ View all Source files message.go storage.go Click to show internal directories. Click to hide internal directories.