Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareMessageForSend ¶
PrepareMessageForSend Make base64 encoded message
Types ¶
type Echo ¶
type Echo struct { Name string `json:"name"` Size int `json:"size"` Description string `json:"description"` }
Echo echo description
type Extensions ¶
type Extensions struct { ListTXT string `json:"list_txt"` BlacklistTXT string `json:"backlist_txt"` Features string `json:"features"` XCount string `json:"xcount"` }
Extensions IDEC extensions
type FetchConfig ¶
type FetchConfig struct { Node string `json:"node"` Echoes []string `json:"echo"` Num int `json:"count"` Offset int `json:"offset"` Limit int `json:"limit"` }
FetchConfig node, echo, and other connection settings
func (FetchConfig) GetAllMessagesIDS ¶
func (f FetchConfig) GetAllMessagesIDS() ([]ID, error)
GetAllMessagesIDS get all message ids from node
func (FetchConfig) GetMessagesIDS ¶
func (f FetchConfig) GetMessagesIDS() ([]ID, error)
GetMessagesIDS get message ids from node
func (FetchConfig) GetRawMessages ¶
func (f FetchConfig) GetRawMessages(ids []ID) ([]MSG, error)
GetRawMessages get messages from node
type Message ¶
type Message struct { From string `json:"from"` To string `json:"to"` Address string `json:"address"` Echo string `json:"echo"` Subg string `json:"subg"` ID string `json:"id"` Timestamp int `json:"timestamp"` Body string `json:"body"` Tags string `json:"tags"` Repto string `json:"repto"` }
Message IDEC message structure
Click to show internal directories.
Click to hide internal directories.