Documentation ¶
Index ¶
Constants ¶
View Source
const ( FileName = "config.yaml" NotificationFileName = "notification.yaml" DefaultFolderPath = "../config/" )
View Source
const ConfKey = "conf"
Variables ¶
View Source
var Config configStruct
View Source
var ( // Root folder of this project. Root = filepath.Join(filepath.Dir(b), "../../..") )
View Source
var Version string
Functions ¶
func GetOptionsByNotification ¶
func GetOptionsByNotification(cfg NotificationConf) msgprocessor.Options
func InitConfig ¶
Types ¶
type CallBackConfig ¶
type NotificationConf ¶
type NotificationConf struct { IsSendMsg bool `yaml:"isSendMsg"` ReliabilityLevel int `yaml:"reliabilityLevel"` // 1 online 2 persistent UnreadCount bool `yaml:"unreadCount"` OfflinePush POfflinePush `yaml:"offlinePush"` }
Click to show internal directories.
Click to hide internal directories.