Documentation
¶
Overview ¶
Package tcap provides simple and painless handling of TCAP(Transaction Capabilities Application Part) in SS7/SIGTRAN protocol stack.
Though TCAP is ASN.1-based protocol, this implementation does not use any ASN.1 parser. That makes this implementation flexible enough to create arbitrary payload with any combinations, which is useful for testing.
Index ¶
- Constants
- func DisableLogging()
- func EnableLogging(l *log.Logger)
- func SetLogger(l *log.Logger)
- type Component
- func NewInvoke(invID, lkID, opCode int, isLocal bool, param []byte) *Component
- func NewReject(invID, problemType int, problemCode uint8, param []byte) *Component
- func NewReturnError(invID, errCode int, isLocal bool, param []byte) *Component
- func NewReturnResult(invID, opCode int, isLocal, isLast bool, param []byte) *Component
- func ParseComponent(b []byte) (*Component, error)
- func (c *Component) ComponentTypeString() string
- func (c *Component) InvID() uint8
- func (c *Component) MarshalBinary() ([]byte, error)
- func (c *Component) MarshalLen() int
- func (c *Component) MarshalTo(b []byte) error
- func (c *Component) OpCode() uint8
- func (c *Component) SetLength()
- func (c *Component) String() string
- func (c *Component) UnmarshalBinary(b []byte) error
- type Components
- func (c *Components) MarshalBinary() ([]byte, error)
- func (c *Components) MarshalLen() int
- func (c *Components) MarshalTo(b []byte) error
- func (c *Components) SetLength()
- func (c *Components) SetValsFrom(berParsed *IE) error
- func (c *Components) String() string
- func (c *Components) UnmarshalBinary(b []byte) error
- type Dialogue
- func (d *Dialogue) Context() string
- func (d *Dialogue) ContextVersion() string
- func (d *Dialogue) MarshalBinary() ([]byte, error)
- func (d *Dialogue) MarshalLen() int
- func (d *Dialogue) MarshalTo(b []byte) error
- func (d *Dialogue) SetLength()
- func (d *Dialogue) SetValsFrom(berParsed *IE) error
- func (d *Dialogue) String() string
- func (d *Dialogue) UnmarshalBinary(b []byte) error
- func (d *Dialogue) Version() string
- type DialoguePDU
- func NewAARE(protover int, context, contextver, result uint8, diagsrc int, reason uint8, ...) *DialoguePDU
- func NewAARQ(protover int, context, contextver uint8, userinfo ...*IE) *DialoguePDU
- func NewABRT(abortsrc uint8, userinfo ...*IE) *DialoguePDU
- func NewDialoguePDU(dtype, pver int, ctx, ctxver, result uint8, diagsrc int, ...) *DialoguePDU
- func ParseDialoguePDU(b []byte) (*DialoguePDU, error)
- func (d *DialoguePDU) Context() string
- func (d *DialoguePDU) ContextVersion() string
- func (d *DialoguePDU) DialogueType() string
- func (d *DialoguePDU) MarshalBinary() ([]byte, error)
- func (d *DialoguePDU) MarshalLen() int
- func (d *DialoguePDU) MarshalTo(b []byte) error
- func (d *DialoguePDU) SetLength()
- func (d *DialoguePDU) String() string
- func (d *DialoguePDU) UnmarshalBinary(b []byte) error
- func (d *DialoguePDU) Version() string
- type IE
- func NewAbortSource(src uint8) *IE
- func NewApplicationContextName(ctx, ver uint8) *IE
- func NewErrorCode(code int, isLocal bool) *IE
- func NewIE(tag Tag, value []byte) *IE
- func NewOperationCode(code int, isLocal bool) *IE
- func NewResult(res uint8) *IE
- func NewResultSourceDiagnostic(dtype int, reason uint8) *IE
- func ParseAsBER(b []byte) ([]*IE, error)
- func ParseAsBer(b []byte) ([]*IE, error)deprecated
- func ParseIE(b []byte) (*IE, error)
- func ParseIERecursive(b []byte) (*IE, error)
- func ParseMultiIEs(b []byte) ([]*IE, error)
- type InvalidCodeError
- type TCAP
- func NewBeginInvoke(otid uint32, invID, opCode int, payload []byte) *TCAP
- func NewBeginInvokeWithDialogue(otid uint32, dlgType, ctx, ctxver uint8, invID, opCode int, payload []byte) *TCAP
- func NewContinueInvoke(otid, dtid uint32, invID, opCode int, payload []byte) *TCAP
- func NewEndReturnResult(dtid uint32, invID, opCode int, isLast bool, payload []byte) *TCAP
- func NewEndReturnResultWithDialogue(dtid uint32, dlgType, ctx, ctxver uint8, invID, opCode int, isLast bool, ...) *TCAP
- func Parse(b []byte) (*TCAP, error)
- func ParseBER(b []byte) ([]*TCAP, error)
- func ParseBer(b []byte) ([]*TCAP, error)deprecated
- func (t *TCAP) AppContextName() string
- func (t *TCAP) AppContextNameOid() string
- func (t *TCAP) AppContextNameWithVersion() string
- func (t *TCAP) ComponentType() []string
- func (t *TCAP) DTID() uint32
- func (t *TCAP) InvokeID() []uint8
- func (t *TCAP) LayerPayload() [][]byte
- func (t *TCAP) MarshalBinary() ([]byte, error)
- func (t *TCAP) MarshalLen() int
- func (t *TCAP) MarshalTo(b []byte) error
- func (t *TCAP) OTID() uint32
- func (t *TCAP) OpCode() []uint8
- func (t *TCAP) SetLength()
- func (t *TCAP) String() string
- func (t *TCAP) UnmarshalBinary(b []byte) error
- type Tag
- func NewApplicationWideConstructorTag(code int) Tag
- func NewApplicationWidePrimitiveTag(code int) Tag
- func NewContextSpecificConstructorTag(code int) Tag
- func NewContextSpecificPrimitiveTag(code int) Tag
- func NewPrivateConstructorTag(code int) Tag
- func NewPrivatePrimitiveTag(code int) Tag
- func NewTag(cls, form, code int) Tag
- func NewUniversalConstructorTag(code int) Tag
- func NewUniversalPrimitiveTag(code int) Tag
- type Transaction
- func NewAbort(dtid uint32, cause uint8, payload []byte) *Transaction
- func NewBegin(otid uint32, payload []byte) *Transaction
- func NewContinue(otid, dtid uint32, payload []byte) *Transaction
- func NewEnd(otid uint32, payload []byte) *Transaction
- func NewTransaction(mtype int, otid, dtid uint32, cause uint8, payload []byte) *Transaction
- func NewUnidirectional(payload []byte) *Transaction
- func ParseTransaction(b []byte) (*Transaction, error)
- func (t *Transaction) AbortCause() string
- func (t *Transaction) DTID() string
- func (t *Transaction) MarshalBinary() ([]byte, error)
- func (t *Transaction) MarshalLen() int
- func (t *Transaction) MarshalTo(b []byte) error
- func (t *Transaction) MessageTypeString() string
- func (t *Transaction) OTID() string
- func (t *Transaction) SetLength()
- func (t *Transaction) SetValsFrom(berParsed *IE) error
- func (t *Transaction) String() string
- func (t *Transaction) UnmarshalBinary(b []byte) error
Constants ¶
const ( Invoke int = iota + 1 ReturnResultLast ReturnError Reject ReturnResultNotLast )
Component Type definitions.
const ( GeneralProblem int = iota InvokeProblem ReturnResultProblem ReturnErrorProblem )
Problem Type definitions.
const ( UnrecognizedComponent uint8 = iota MistypedComponent BadlyStructuredComponent )
General Problem Code definitions.
const ( InvokeProblemDuplicateInvokeID uint8 = iota InvokeProblemUnrecognizedOperation InvokeProblemMistypedParameter InvokeProblemResourceLimitation InvokeProblemInitiatingRelease InvokeProblemUnrecognizedLinkedID InvokeProblemLinkedResponseUnexpected InvokeProblemUnexpectedLinkedOperation )
Invoke Problem Code definitions.
const ( ResultProblemUnrecognizedInvokeID uint8 = iota ResultProblemReturnResultUnexpected ResultProblemMistypedParameter )
ReturnResult Problem Code definitions.
const ( ErrorProblemUnrecognizedInvokeID uint8 = iota ErrorProblemReturnErrorUnexpected ErrorProblemUnrecognizedError ErrorProblemUnexpectedError ErrorProblemMistypedParameter )
ReturnError Problem Code definitions.
const ( AARQ = iota AARE ABRT )
Code definitions.
const ( NetworkLocUpContext uint8 LocationCancellationContext RoamingNumberEnquiryContext IstAlertingContext LocationInfoRetrievalContext CallControlTransferContext ReportingContext CallCompletionContext ServiceTerminationContext ResetContext HandoverControlContext SIWFSAllocationContext EquipmentMngtContext InfoRetrievalContext InterVlrInfoRetrievalContext SubscriberDataMngtContext TracingContext NetworkFunctionalSsContext NetworkUnstructuredSsContext ShortMsgGatewayContext ShortMsgRelayContext SubscriberDataModificationNotificationContext ShortMsgAlertContext MwdMngtContext ShortMsgMTRelayContext ImsiRetrievalContext MsPurgingContext SubscriberInfoEnquiryContext AnyTimeInfoEnquiryContext GroupCallControlContext GprsLocationUpdateContext GprsLocationInfoRetrievalContext FailureReportContext GprsNotifyContext SsInvocationNotificationContext LocationSvcGatewayContext LocationSvcEnquiryContext AuthenticationFailureReportContext MmEventReportingContext AnyTimeInfoHandlingContext SendRoutingInfoForSM )
Application Context definitions.
const ( Accepted uint8 = iota RejectPerm )
Result Value defnitions.
const ( DialogueServiceUser int DialogueServiceProvider )
Dialogue Service Diagnostic Tag defnitions.
const ( Null uint8 = iota NoReasonGiven ApplicationContextNameNotSupplied NoCommonDialoguePortion = 2 // same as above... )
Reason defnitions for Dialogue Service User Diagnostic in ResultSourceDiagnostic.
const ( AbortDialogueServiceUser int = iota AbortDialogueServiceProvider )
Abort Source defnitions.
const ( DialogueAsID uint8 = iota + 1 UnidialogueAsID )
Dialogue OID: Dialogue-As-ID and Unidialogue-As-Id.
const ( Universal int = iota ApplicationWide ContextSpecific Private )
Class definitions.
const ( Primitive int = iota Constructor )
Type definitions.
const ( Unidirectional int = iota + 1 Begin End Continue Abort )
Message Type definitions.
const ( UnrecognizedMessageType uint8 = iota UnrecognizedTransactionID BadlyFormattedTransactionPortion IncorrectTransactionPortion ResourceLimitation )
Abort Cause definitions.
Variables ¶
This section is empty.
Functions ¶
func DisableLogging ¶
func DisableLogging()
DisableLogging disables the logging from the package. Logging is enabled by default.
func EnableLogging ¶
EnableLogging enables the logging from the package. If l is nil, it uses default logger provided by the package. Logging is enabled by default.
See also: SetLogger.
func SetLogger ¶
SetLogger replaces the standard logger with arbitrary *log.Logger.
This package prints just informational logs from goroutines working background that might help developers test the program but can be ignored safely. More important ones that needs any action by caller would be returned as errors.
Types ¶
type Component ¶
type Component struct { Type Tag Length uint8 InvokeID *IE LinkedID *IE ResultRetres *IE SequenceTag *IE OperationCode *IE ErrorCode *IE ProblemCode *IE Parameter *IE }
Component represents a TCAP Component.
func NewReturnError ¶
NewReturnError returns a new single ReturnError Component.
func NewReturnResult ¶
NewReturnResult returns a new single ReturnResultLast or ReturnResultNotLast Component.
func ParseComponent ¶
ParseComponent parses given byte sequence as an Component.
func (*Component) ComponentTypeString ¶
ComponentTypeString returns the Component Type in string.
func (*Component) MarshalBinary ¶
MarshalBinary returns the byte sequence generated from a Components instance.
func (*Component) MarshalLen ¶
MarshalLen returns the serial length of Component.
func (*Component) SetLength ¶
func (c *Component) SetLength()
SetLength sets the length in Length field.
func (*Component) UnmarshalBinary ¶
UnmarshalBinary sets the values retrieved from byte sequence in an Component.
type Components ¶
Components represents a TCAP Components(Header).
This is a TCAP Components' Header part. Contents are in Component field.
func NewComponents ¶
func NewComponents(comps ...*Component) *Components
NewComponents creates a new Components.
func ParseComponents ¶
func ParseComponents(b []byte) (*Components, error)
ParseComponents parses given byte sequence as an Components.
func (*Components) MarshalBinary ¶
func (c *Components) MarshalBinary() ([]byte, error)
MarshalBinary returns the byte sequence generated from a Components instance.
func (*Components) MarshalLen ¶
func (c *Components) MarshalLen() int
MarshalLen returns the serial length of Components.
func (*Components) MarshalTo ¶
func (c *Components) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*Components) SetLength ¶
func (c *Components) SetLength()
SetLength sets the length in Length field.
func (*Components) SetValsFrom ¶
func (c *Components) SetValsFrom(berParsed *IE) error
SetValsFrom sets the values from IE parsed by ParseBER.
func (*Components) String ¶
func (c *Components) String() string
String returns Components in human readable string.
func (*Components) UnmarshalBinary ¶
func (c *Components) UnmarshalBinary(b []byte) error
UnmarshalBinary sets the values retrieved from byte sequence in an Components.
type Dialogue ¶
type Dialogue struct { Tag Tag Length uint8 ExternalTag Tag ExternalLength uint8 ObjectIdentifier *IE SingleAsn1Type *IE DialoguePDU *DialoguePDU Payload []byte }
Dialogue represents a Dialogue Portion of TCAP.
func NewDialogue ¶
func NewDialogue(oid, ver uint8, pdu *DialoguePDU, payload []byte) *Dialogue
NewDialogue creates a new Dialogue with the DialoguePDU given.
func ParseDialogue ¶
ParseDialogue parses given byte sequence as an Dialogue.
func (*Dialogue) ContextVersion ¶
ContextVersion returns the Version part of ApplicationContextName in string.
func (*Dialogue) MarshalBinary ¶
MarshalBinary returns the byte sequence generated from a Dialogue instance.
func (*Dialogue) MarshalLen ¶
MarshalLen returns the serial length of Dialogue.
func (*Dialogue) SetLength ¶
func (d *Dialogue) SetLength()
SetLength sets the length in Length field.
func (*Dialogue) SetValsFrom ¶
SetValsFrom sets the values from IE parsed by ParseBER.
func (*Dialogue) UnmarshalBinary ¶
UnmarshalBinary sets the values retrieved from byte sequence in an Dialogue.
type DialoguePDU ¶
type DialoguePDU struct { Type Tag Length uint8 ProtocolVersion *IE ApplicationContextName *IE Result *IE ResultSourceDiagnostic *IE AbortSource *IE UserInformation *IE }
DialoguePDU represents a DialoguePDU field in Dialogue.
func NewAARE ¶
func NewAARE(protover int, context, contextver, result uint8, diagsrc int, reason uint8, userinfo ...*IE) *DialoguePDU
NewAARE returns a new AARE(Dialogue Response).
func NewAARQ ¶
func NewAARQ(protover int, context, contextver uint8, userinfo ...*IE) *DialoguePDU
NewAARQ returns a new AARQ(Dialogue Request).
func NewABRT ¶
func NewABRT(abortsrc uint8, userinfo ...*IE) *DialoguePDU
NewABRT returns a new ABRT(Dialogue Abort).
func NewDialoguePDU ¶
func NewDialoguePDU(dtype, pver int, ctx, ctxver, result uint8, diagsrc int, diagreason, abortsrc uint8, userinfo ...*IE) *DialoguePDU
NewDialoguePDU creates a new DialoguePDU.
func ParseDialoguePDU ¶
func ParseDialoguePDU(b []byte) (*DialoguePDU, error)
ParseDialoguePDU parses given byte sequence as an DialoguePDU.
func (*DialoguePDU) Context ¶
func (d *DialoguePDU) Context() string
Context returns the Context part of ApplicationContextName in string.
func (*DialoguePDU) ContextVersion ¶
func (d *DialoguePDU) ContextVersion() string
ContextVersion returns the Version part of ApplicationContextName in string.
func (*DialoguePDU) DialogueType ¶
func (d *DialoguePDU) DialogueType() string
DialogueType returns the name of Dialogue Type in string.
func (*DialoguePDU) MarshalBinary ¶
func (d *DialoguePDU) MarshalBinary() ([]byte, error)
MarshalBinary returns the byte sequence generated from a Dialogue instance.
func (*DialoguePDU) MarshalLen ¶
func (d *DialoguePDU) MarshalLen() int
MarshalLen returns the serial length of DialoguePDU.
func (*DialoguePDU) MarshalTo ¶
func (d *DialoguePDU) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*DialoguePDU) SetLength ¶
func (d *DialoguePDU) SetLength()
SetLength sets the length in Length field.
func (*DialoguePDU) String ¶
func (d *DialoguePDU) String() string
String returns DialoguePDU in human readable string.
func (*DialoguePDU) UnmarshalBinary ¶
func (d *DialoguePDU) UnmarshalBinary(b []byte) error
UnmarshalBinary sets the values retrieved from byte sequence in an DialoguePDU.
func (*DialoguePDU) Version ¶
func (d *DialoguePDU) Version() string
Version returns Protocol Version in string.
type IE ¶
IE is a General Structure of TCAP Information Elements.
func NewAbortSource ¶
NewAbortSource returns a new AbortSource as an IE.
func NewApplicationContextName ¶
NewApplicationContextName creates a new ApplicationContextName as an IE. Note: In this function, each length in fields are hard-coded.
func NewErrorCode ¶
NewErrorCode returns a Error Code.
func NewOperationCode ¶
NewOperationCode returns a Operation Code.
func NewResultSourceDiagnostic ¶
NewResultSourceDiagnostic returns a new ResultSourceDiagnostic as an IE.
func ParseAsBER ¶
ParseAsBER parses given byte sequence as multiple IEs.
func ParseAsBer
deprecated
func ParseIERecursive ¶
ParseIERecursive parses given byte sequence as an IE.
func ParseMultiIEs ¶
ParseMultiIEs parses multiple (unspecified number of) IEs to []*IE at a time.
func (*IE) MarshalBinary ¶
MarshalBinary returns the byte sequence generated from a IE instance.
func (*IE) ParseRecursive ¶
ParseRecursive sets the values retrieved from byte sequence in an IE.
func (*IE) UnmarshalBinary ¶
UnmarshalBinary sets the values retrieved from byte sequence in an IE.
type InvalidCodeError ¶
type InvalidCodeError struct {
Code int
}
InvalidCodeError indicates that Code in TCAP message is invalid.
func (*InvalidCodeError) Error ¶
func (e *InvalidCodeError) Error() string
Error returns error message with violating content.
type TCAP ¶
type TCAP struct { Transaction *Transaction Dialogue *Dialogue Components *Components }
TCAP represents a General Structure of TCAP Information Elements.
func NewBeginInvoke ¶
NewBeginInvoke creates a new TCAP of type Transaction=Begin, Component=Invoke.
func NewBeginInvokeWithDialogue ¶
func NewBeginInvokeWithDialogue(otid uint32, dlgType, ctx, ctxver uint8, invID, opCode int, payload []byte) *TCAP
NewBeginInvokeWithDialogue creates a new TCAP of type Transaction=Begin, Component=Invoke with Dialogue Portion.
func NewContinueInvoke ¶
NewContinueInvoke creates a new TCAP of type Transaction=Continue, Component=Invoke.
func NewEndReturnResult ¶
NewEndReturnResult creates a new TCAP of type Transaction=End, Component=ReturnResult.
func NewEndReturnResultWithDialogue ¶
func NewEndReturnResultWithDialogue(dtid uint32, dlgType, ctx, ctxver uint8, invID, opCode int, isLast bool, payload []byte) *TCAP
NewEndReturnResultWithDialogue creates a new TCAP of type Transaction=End, Component=ReturnResult with Dialogue Portion.
func (*TCAP) AppContextName ¶
AppContextName returns the ACN in string.
func (*TCAP) AppContextNameOid ¶
AppContextNameOid returns the ACN with ACN Version in OID formatted string.
TODO: Looking for a better way to return the value in the same format...
func (*TCAP) AppContextNameWithVersion ¶
AppContextNameWithVersion returns the ACN with ACN Version in string.
TODO: Looking for a better way to return the value in the same format...
func (*TCAP) ComponentType ¶
ComponentType returns the ComponentType in Component Portion in the list of string.
The returned value is of type []string, as it may have multiple Components.
func (*TCAP) DTID ¶
DTID returns the TCAP Originating Transaction ID in Transaction Portion in uint32.
func (*TCAP) InvokeID ¶
InvokeID returns the InvokeID in Component Portion in the list of string.
The returned value is of type []string, as it may have multiple Components.
func (*TCAP) LayerPayload ¶
LayerPayload returns the upper layer as byte slice.
The returned value is of type [][]byte, as it may have multiple Components.
func (*TCAP) MarshalBinary ¶
MarshalBinary returns the byte sequence generated from a TCAP instance.
func (*TCAP) MarshalLen ¶
MarshalLen returns the serial length of TCAP.
func (*TCAP) OTID ¶
OTID returns the TCAP Originating Transaction ID in Transaction Portion in uint32.
func (*TCAP) OpCode ¶
OpCode returns the OpCode in Component Portion in the list of string.
The returned value is of type []string, as it may have multiple Components.
func (*TCAP) UnmarshalBinary ¶
UnmarshalBinary sets the values retrieved from byte sequence in a TCAP.
type Tag ¶
type Tag uint8
Tag is a Tag in TCAP IE
func NewApplicationWideConstructorTag ¶
NewApplicationWideConstructorTag creates a new NewApplicationWideConstructorTag.
func NewApplicationWidePrimitiveTag ¶
NewApplicationWidePrimitiveTag creates a new NewApplicationWidePrimitiveTag.
func NewContextSpecificConstructorTag ¶
NewContextSpecificConstructorTag creates a new NewContextSpecificConstructorTag.
func NewContextSpecificPrimitiveTag ¶
NewContextSpecificPrimitiveTag creates a new NewContextSpecificPrimitiveTag.
func NewPrivateConstructorTag ¶
NewPrivateConstructorTag creates a new NewPrivateConstructorTag.
func NewPrivatePrimitiveTag ¶
NewPrivatePrimitiveTag creates a new NewPrivatePrimitiveTag.
func NewUniversalConstructorTag ¶
NewUniversalConstructorTag creates a new NewUniversalConstructorTag.
func NewUniversalPrimitiveTag ¶
NewUniversalPrimitiveTag creates a new NewUniversalPrimitiveTag.
type Transaction ¶
type Transaction struct { Type Tag Length uint8 OrigTransactionID *IE DestTransactionID *IE PAbortCause *IE Payload []byte }
Transaction represents a Transaction Portion of TCAP.
func NewAbort ¶
func NewAbort(dtid uint32, cause uint8, payload []byte) *Transaction
NewAbort returns Abort type of Transacion Portion.
func NewBegin ¶
func NewBegin(otid uint32, payload []byte) *Transaction
NewBegin returns Begin type of Transacion Portion.
func NewContinue ¶
func NewContinue(otid, dtid uint32, payload []byte) *Transaction
NewContinue returns Continue type of Transacion Portion.
func NewEnd ¶
func NewEnd(otid uint32, payload []byte) *Transaction
NewEnd returns End type of Transacion Portion.
func NewTransaction ¶
func NewTransaction(mtype int, otid, dtid uint32, cause uint8, payload []byte) *Transaction
NewTransaction returns a new Transaction Portion.
func NewUnidirectional ¶
func NewUnidirectional(payload []byte) *Transaction
NewUnidirectional returns Unidirectional type of Transacion Portion.
func ParseTransaction ¶
func ParseTransaction(b []byte) (*Transaction, error)
ParseTransaction parses given byte sequence as an Transaction.
func (*Transaction) AbortCause ¶
func (t *Transaction) AbortCause() string
AbortCause returns the P-Abort Cause in string.
func (*Transaction) DTID ¶
func (t *Transaction) DTID() string
DTID returns the DestTransactionID in string.
func (*Transaction) MarshalBinary ¶
func (t *Transaction) MarshalBinary() ([]byte, error)
MarshalBinary returns the byte sequence generated from a Transaction instance.
func (*Transaction) MarshalLen ¶
func (t *Transaction) MarshalLen() int
MarshalLen returns the serial length of Transaction.
func (*Transaction) MarshalTo ¶
func (t *Transaction) MarshalTo(b []byte) error
MarshalTo puts the byte sequence in the byte array given as b.
func (*Transaction) MessageTypeString ¶
func (t *Transaction) MessageTypeString() string
MessageTypeString returns the name of Message Type in string.
func (*Transaction) OTID ¶
func (t *Transaction) OTID() string
OTID returns the OrigTransactionID in string.
func (*Transaction) SetLength ¶
func (t *Transaction) SetLength()
SetLength sets the length in Length field.
func (*Transaction) SetValsFrom ¶
func (t *Transaction) SetValsFrom(berParsed *IE) error
SetValsFrom sets the values from IE parsed by ParseBER.
func (*Transaction) String ¶
func (t *Transaction) String() string
String returns Transaction in human readable string.
func (*Transaction) UnmarshalBinary ¶
func (t *Transaction) UnmarshalBinary(b []byte) error
UnmarshalBinary sets the values retrieved from byte sequence in an Transaction.