Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body interface { Len() int Raw() interface{} String() string Bytes() []byte SerializeTo(w io.Writer) error }
Body is an interface for manipulating binary PDU Tag-Length-Value field data.
type CString ¶
type CString string
CString is a text string that is automatically null-terminated (e.g., final 00 byte at the end).
type Field ¶
Field is a PDU Tag-Length-Value (TLV) field
func (*Field) SerializeTo ¶
SerializeTo implements the Data interface.
type Map ¶
Map is a collection of PDU TLV field data indexed by tag.
func (Map) MarshalJSON ¶
func (Map) Set ¶
Set updates the PDU map with the given tag and value, and returns error if the value cannot be converted to type Data.
This is a shortcut for m[t] = NewTLV(t, v) converting v properly.
func (*Map) UnmarshalJSON ¶
type MessageStateType ¶
type MessageStateType uint8
const ( Enroute MessageStateType = 1 // The message is in enroute Delivered MessageStateType = 2 // Message is delivered Expired MessageStateType = 3 // Message validity period has expired Deleted MessageStateType = 4 // Message has been deleted Undeliverable MessageStateType = 5 // Message is undeliverable Accepted MessageStateType = 6 // Message is in accepted state Unknown MessageStateType = 7 // Message is in invalid state Rejected MessageStateType = 8 // Message is in a rejected state )
func (MessageStateType) String ¶
func (m MessageStateType) String() string
type Tag ¶
type Tag uint16
Tag is the tag of a Tag-Length-Value (TLV) field.
const ( DestAddrSubunit Tag = 0x0005 DestNetworkType Tag = 0x0006 DestBearerType Tag = 0x0007 DestTelematicsID Tag = 0x0008 SourceAddrSubunit Tag = 0x000D SourceNetworkType Tag = 0x000E SourceBearerType Tag = 0x000F SourceTelematicsID Tag = 0x0010 QosTimeToLive Tag = 0x0017 PayloadType Tag = 0x0019 AdditionalStatusInfoText Tag = 0x001D ReceiptedMessageID Tag = 0x001E MsMsgWaitFacilities Tag = 0x0030 PrivacyIndicator Tag = 0x0201 SourceSubaddress Tag = 0x0202 DestSubaddress Tag = 0x0203 UserMessageReference Tag = 0x0204 UserResponseCode Tag = 0x0205 SourcePort Tag = 0x020A DestinationPort Tag = 0x020B SarMsgRefNum Tag = 0x020C LanguageIndicator Tag = 0x020D SarTotalSegments Tag = 0x020E SarSegmentSeqnum Tag = 0x020F CallbackNumPresInd Tag = 0x0302 CallbackNumAtag Tag = 0x0303 NumberOfMessages Tag = 0x0304 CallbackNum Tag = 0x0381 DpfResult Tag = 0x0420 SetDpf Tag = 0x0421 MsAvailabilityStatus Tag = 0x0422 NetworkErrorCode Tag = 0x0423 MessagePayload Tag = 0x0424 DeliveryFailureReason Tag = 0x0425 MoreMessagesToSend Tag = 0x0426 MessageStateOption Tag = 0x0427 UssdServiceOp Tag = 0x0501 DisplayTime Tag = 0x1201 SmsSignal Tag = 0x1203 MsValidity Tag = 0x1204 AlertOnMessageDelivery Tag = 0x130C ItsReplyType Tag = 0x1380 ItsSessionInfo Tag = 0x1383 )
Common Tag-Length-Value (TLV) tags.
Click to show internal directories.
Click to hide internal directories.