Documentation ¶
Index ¶
- Constants
- func InitializeSmppSessionInstance(gw *config.SmsGateway, pduConf *config.PDUConfigs)
- type ISmppSessionManager
- type SmppSessionManager
- func (c *SmppSessionManager) Bind() error
- func (c *SmppSessionManager) Destroy()
- func (c *SmppSessionManager) HandleEvent(event *gosmpp.ServerPDUEvent) (ex *Exception.Exception)
- func (c *SmppSessionManager) Rebind() error
- func (c *SmppSessionManager) SendSMS(data *models.SendSMS) (subRes bool)
- func (c *SmppSessionManager) Unbind() (unbindResp *PDU.UnbindResp, err *Exception.Exception)
Constants ¶
View Source
const ( STATE_UNBIND = 0 STATE_BIND = 1 )
Variables ¶
This section is empty.
Functions ¶
func InitializeSmppSessionInstance ¶
func InitializeSmppSessionInstance(gw *config.SmsGateway, pduConf *config.PDUConfigs)
InitializeSmppSessionInstance ...
Types ¶
type ISmppSessionManager ¶
type ISmppSessionManager interface { Bind() error Rebind() error Destroy() SendSMS(data *models.SendSMS) bool Unbind() (unbindResp *PDU.UnbindResp, err *Exception.Exception) }
ISmppSessionManager smpp session manager interface
var Instance ISmppSessionManager
Instance instance of SmppSessionManager
type SmppSessionManager ¶
type SmppSessionManager struct {
// contains filtered or unexported fields
}
SmppSessionManager default smpp session manager
func (*SmppSessionManager) HandleEvent ¶
func (c *SmppSessionManager) HandleEvent(event *gosmpp.ServerPDUEvent) (ex *Exception.Exception)
HandleEvent handle server pdu events
func (*SmppSessionManager) SendSMS ¶
func (c *SmppSessionManager) SendSMS(data *models.SendSMS) (subRes bool)
SendSMS do send sms
func (*SmppSessionManager) Unbind ¶
func (c *SmppSessionManager) Unbind() (unbindResp *PDU.UnbindResp, err *Exception.Exception)
Unbind unbinding connections
Click to show internal directories.
Click to hide internal directories.