Documentation ¶
Overview ¶
Package models contains shared data resource Project Gonder. Author Supme Copyright Supme 2016 License http://opensource.org/licenses/MIT MIT License
THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
Please see the License.txt file for more information.
Index ¶
- Constants
- Variables
- func BytesToString(b []byte) string
- func Conv1st2nd(num int) string
- func EncodeUTM(cmd, data string, params map[string]interface{}) string
- func GetIP(r *http.Request) string
- func Init()
- func InitEmailPool() error
- func StringToBytes(s string) []byte
- func WorkDir(path string) string
- type Message
Constants ¶
View Source
const ( OpenTrace = "open_trace" WebVersion = "web_version" Unsubscribe = "unsubscribe" StatusUnsubscribe = "Unsubscribe" StatusSending = "Sending" )
Variables ¶
View Source
var ( Db *sql.DB Config config )
View Source
var EmailPool emailPool
Functions ¶
func Conv1st2nd ¶
func InitEmailPool ¶
func InitEmailPool() error
func StringToBytes ¶
Types ¶
type Message ¶
type Message struct { RecipientID string // ToDo int? RecipientEmail string RecipientName string RecipientParam map[string]string CampaignID string // ToDo int? }
func (*Message) Unsubscribe ¶
Unsubscribe recipient from group ToDo move to campaign/Recipient
func (*Message) UnsubscribeTemplateDir ¶
ToDo move to campaign/Recipient
Click to show internal directories.
Click to hide internal directories.