Versions in this module Expand all Collapse all v0 v0.4.0 Apr 4, 2024 v0.3.0 Apr 4, 2024 Changes in this version + const MaxDestinationAddress + var ErrMaxWindowSize = errors.New("reached max window size") + var ErrNotBound = errors.New("not bound") + var ErrNotConnected = errors.New("not connected") + var ErrTimeout = errors.New("timeout waiting for response") + type ClientConn interface + Bind func() <-chan ConnStatus + type Closer interface + Close func() error + type Conn interface + func Dial(addr string, TLS *tls.Config) (Conn, error) + type ConnStatus interface + Error func() error + Status func() ConnStatusID + type ConnStatusID uint8 + const BindFailed + const Connected + const ConnectionFailed + const Disconnected + func (cs ConnStatusID) String() string + type HandlerFunc func(p pdu.Body) + type MergeHolder struct + LastWriteTime time.Time + MessageID int + MessageParts []*MessagePart + PartsCount int + type MessagePart struct + Data *bytes.Buffer + PartID int + type QueryResp struct + ErrCode uint8 + FinalDate string + MsgID string + MsgState string + type RateLimiter interface + Wait func(ctx context.Context) error + type Reader interface + Read func() (pdu.Body, error) + type Receiver struct + Addr string + BindInterval time.Duration + EnquireLink time.Duration + EnquireLinkTimeout time.Duration + Handler HandlerFunc + MergeCleanupInterval time.Duration + MergeInterval time.Duration + Passwd string + SkipAutoRespondIDs []pdu.ID + SystemType string + TLS *tls.Config + User string + func (r *Receiver) Bind() <-chan ConnStatus + func (r *Receiver) Close() error + type ShortMessage struct + DLs []string + DestAddrNPI uint8 + DestAddrTON uint8 + Dst string + DstList []string + ESMClass uint8 + NumberDests uint8 + PriorityFlag uint8 + ProtocolID uint8 + Register pdufield.DeliverySetting + ReplaceIfPresentFlag uint8 + SMDefaultMsgID uint8 + ScheduleDeliveryTime string + ServiceType string + SourceAddrNPI uint8 + SourceAddrTON uint8 + Src string + TLVFields pdutlv.Fields + Text pdutext.Codec + Validity time.Duration + func (sm *ShortMessage) NumbUnsuccess() (int, error) + func (sm *ShortMessage) Resp() pdu.Body + func (sm *ShortMessage) RespID() string + func (sm *ShortMessage) UnsuccessSmes() ([]UnsucessDest, error) + type Transceiver struct + Addr string + BindInterval time.Duration + EnquireLink time.Duration + EnquireLinkTimeout time.Duration + Handler HandlerFunc + Passwd string + RateLimiter RateLimiter + RespTimeout time.Duration + SystemType string + TLS *tls.Config + User string + WindowSize uint + func (t *Transceiver) Bind() <-chan ConnStatus + type Transmitter struct + Addr string + BindInterval time.Duration + EnquireLink time.Duration + EnquireLinkTimeout time.Duration + Passwd string + RateLimiter RateLimiter + RespTimeout time.Duration + SystemType string + TLS *tls.Config + User string + WindowSize uint + func (t *Transmitter) Bind() <-chan ConnStatus + func (t *Transmitter) Close() error + func (t *Transmitter) QuerySM(src, msgid string, srcTON, srcNPI uint8) (*QueryResp, error) + func (t *Transmitter) Submit(sm *ShortMessage) (*ShortMessage, error) + func (t *Transmitter) SubmitLongMsg(sm *ShortMessage) ([]ShortMessage, error) + type UnsucessDest struct + AddrNPI uint8 + AddrTON uint8 + Address string + Error pdu.Status + type Writer interface + Write func(w pdu.Body) error Other modules containing this package github.com/k1r91/go-smpp/v2