Versions in this module Expand all Collapse all v1 v1.0.1 Aug 20, 2022 v1.0.0 Aug 3, 2022 Changes in this version + const StatusAccepted + const StatusDelivered + const StatusDeliveryError + const StatusIncorrectID + const StatusQueued + const StatusSMSCReject + const StatusSMSCSubmit + var ErrLoginMissing = errors.New("sms gateway login missing") + var ErrPasswordMissing = errors.New("sms gateway password missing") + var ErrWrongResponseParts = errors.New("wrong parts in response") + type Gateway struct + func NewSMSGateway(login string, password string) *Gateway + func NewSMSGatewayFromEnv() (*Gateway, error) + func (g *Gateway) Balance() (float64, error) + func (g *Gateway) CheckMessages(ids ...string) ([]*Result, error) + func (g *Gateway) CheckQuery(name string, limit int) ([]*Result, error) + func (g *Gateway) Send(msg Message) (*Result, error) + func (g *Gateway) Senders() ([]string, error) + type Message struct + Flash bool + Phone string + Queue string + Schedule time.Time + Sender string + Text string + WapURL string + func (m *Message) Encode() string + type Result struct + ID string + Status status