Versions in this module Expand all Collapse all v0 v0.0.24 Nov 1, 2019 v0.0.23 Nov 1, 2019 Changes in this version + const HTTPArg + const HTTPContentType + const HTTPMethod + const HTTPSAPIAddress + const TimeFormat + func Callback(h smshandler.HTTPHandler, path string, mux *http.ServeMux, ...) + type Content struct + Message string + Type string + XMLName xml.Name + type DeliveryInfo struct + ActionType string + BillingCodeID string + CustomerMessageID int64 + CustomerParam string + ID string + Network string + NotificationDate time.Time + OriginalMessage string + PhoneNumber string + Price string + ProjectID string + RetriesNumber uint + SegmentsNumber int + SenderNumber string + Status DeliveryStatus + StatusDescription string + XMLName xml.Name + func FormToDeliveryInfo(form url.Values) *DeliveryInfo + type DeliveryStatus int + const DeliveryStatusBlockedByInforuMobile + const DeliveryStatusDelivered + const DeliveryStatusNotDelivered + func DeliveryStatusFromString(str string) DeliveryStatus + func (ds *DeliveryStatus) Scan(src interface{}) error + func (ds *DeliveryStatus) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (ds DeliveryStatus) IsDelivered() bool + func (ds DeliveryStatus) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (ds DeliveryStatus) String() string + func (ds DeliveryStatus) Value() (driver.Value, error) + type HTTPHandler struct + Client *http.Client + func (h HTTPHandler) DoHTTP(method, contentType, address string, fields url.Values, body []byte) (resp *http.Response, err error) + func (h HTTPHandler) OnGettingSMS(path string, mux *http.ServeMux, httpHandler http.HandlerFunc) + type InforuMultiXML struct + InforuXML []InforuXML + XMLName xml.Name + func (x InforuMultiXML) SendSMS(h HTTPHandler) (*http.Response, error) + type InforuXML struct + Auth UserAuth + Content Content + Recipients Recipients + Settings Settings + XMLName xml.Name + func (x InforuXML) SendSMS(h HTTPHandler) (*http.Response, error) + type Recipients struct + GroupNumber string + PhoneNumber string + XMLName xml.Name + type ResponseStatus int + const StatusBadUserNameOrPassword + const StatusCustomerQuotaExceeded + const StatusFailed + const StatusIllegalXML + const StatusInvalidSenderName + const StatusInvalidSenderNumber + const StatusMessageTextNotExists + const StatusNetworkTypeNotSupported + const StatusNoValidRecipients + const StatusNotAllNetworkTypesSupported + const StatusOK + const StatusPasswordNotExists + const StatusProjectQuotaExceeded + const StatusRecipientsDataNotExists + const StatusSenderIdentification + const StatusUserAuthenticationError + const StatusUserBlocked + const StatusUserNameNotExist + const StatusUserQuotaExceeded + const StatusWrongDateTime + func (s *ResponseStatus) Scan(src interface{}) error + func (s *ResponseStatus) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (s ResponseStatus) IsOK() bool + func (s ResponseStatus) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (s ResponseStatus) String() string + func (s ResponseStatus) Value() (driver.Value, error) + type SMSError struct + Description string + Effected int64 + Status ResponseStatus + func (e SMSError) Error() string + type Settings struct + CustomerMessageID string + CustomerParameter string + DelayInSeconds int64 + DeliveryNotificationURL string + MaxSegments int + MessageInterval int + Priority int + Sender string + TimeToSend string + XMLName xml.Name + type UserAuth struct + Password string + UserName string + XMLName xml.Name + type XMLResponse struct + Description string + NumberOfRecipients int64 + Status ResponseStatus + XMLName xml.Name + func (r *XMLResponse) FromResponse(buf []byte) error + func (r XMLResponse) IsOK() bool + func (r XMLResponse) ToError() error