Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddrConfig ¶
type AppConfig ¶
type AppConfig struct { App struct { SmppConn []SmppConfig `yaml:"smpp"` Rest struct { Addr string `default:"0.0.0.0" yaml:"addr"` Port uint16 `default:"8080" yaml:"port"` } `yaml:"rest"` Log struct { Level string `default:"info" yaml:"level"` } `yaml:"log"` } `yaml:"service"` }
func GetSmppConf ¶
func (*AppConfig) GetRestAddr ¶
func (*AppConfig) UnmarshalYAML ¶
type MessageConfig ¶
type MessageConfig struct { Send struct { Src struct { Npi uint16 `default:"1" yaml:"npi"` Ton uint16 `default:"1" yaml:"ton"` Oaddr string `yaml:"oaddr"` } `yaml:"src"` Dst struct { Npi uint16 `default:"1" yaml:"npi"` Ton uint16 `default:"1" yaml:"ton"` Daddr AddrConfig `yaml:"daddr"` } `yaml:"dst"` RequireSR bool `default:"false" yaml:"require-sr"` Content string `yaml:"content"` Dcs int `default:"0" yaml:"dcs"` } `yaml:"send"` }
type SmppConfig ¶
type SmppConfig struct { Server struct { Addr string `default:"localhost" yaml:"addr"` Port uint16 `default:"5588" yaml:"port"` User string `yaml:"username"` Password string `yaml:"password"` } `yaml:"server"` Client struct { Type string `default:"transmitter" yaml:"bind-type"` Count uint16 `default:"10" yaml:"conn-num"` } Message MessageConfig `yaml:"message"` }
func (*SmppConfig) IsTransmitter ¶
func (s *SmppConfig) IsTransmitter() bool
Click to show internal directories.
Click to hide internal directories.