Documentation ¶
Index ¶
- Variables
- func DownloadSmsReport(url, path string, encrypt bool) error
- func GetSmsReportDownloadUrl(id string) (string, error)
- func LoadAllContacts() error
- func LoadEventHistory() error
- func RequestForm(name string, phone string, events []SmsEvent) []byte
- func RequestHandler(c *gin.Context)
- func RequestSmsReport(fromDate int64) (string, error)
- func SearchHandler(c *gin.Context)
- func SelectPhonesByEmail(email string, events []SmsEvent) []string
- func ServerErrorForm(name, phone string) []byte
- func StatsHandler(c *gin.Context)
- func UploadSmsHistory(events []SmsEvent) error
- type SmsEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EventHistory []SmsEvent AllContacts []contacts.Entry )
View Source
var (
PT *time.Location
)
View Source
var (
SmsHistoryFilename = "sms-history.gob.age"
)
View Source
var (
SmsImportHeaders = []string{
"date", "message_id", "name", "email", "target_type", "target_id",
"sender_id", "direction", "to_phone", "from_phone",
"encrypted_text", "encrypted_aes_text", "mms", "timezone",
}
)
Functions ¶
func DownloadSmsReport ¶
func GetSmsReportDownloadUrl ¶
func LoadAllContacts ¶
func LoadAllContacts() error
func LoadEventHistory ¶
func LoadEventHistory() error
func RequestHandler ¶
func RequestSmsReport ¶
func SearchHandler ¶
func SelectPhonesByEmail ¶
func ServerErrorForm ¶
func StatsHandler ¶
func UploadSmsHistory ¶
Types ¶
type SmsEvent ¶
type SmsEvent struct { Date int64 // UnixMicro MessageId string Name string Email string TargetType string TargetId int64 SenderId int64 Direction string ToPhones []string FromPhone string Text string MmsUrl string }
func DownloadSmsHistory ¶
func ImportSmsEvents ¶
Click to show internal directories.
Click to hide internal directories.