parse

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("parsing")

Functions

func CreateSuccessPacs002

func CreateSuccessPacs002(participantBIC, target string, statusCode int, xmlData *sendmodel.XMLData) []byte

func DecodeBase64

func DecodeBase64(str string) ([]byte, error)

func EncodeBase64

func EncodeBase64(content []byte) string

func GetDBData

func GetDBData(msgId string) (interface{}, []model.TransactionReceipt)

func HeaderIdentifierCheck

func HeaderIdentifierCheck(bizMsgIdr string, msgDefIdr string, msgType string) error

BizMsgIdr Format : ByyyymmddbbbbbbbbbbbXAAnnnnnnn

func Init

func Init()

func InstructionIdCheck

func InstructionIdCheck(instrId string) error

func SchemaInitiate

func SchemaInitiate(path []string) ([]*xsd.Schema, error)

func ValidateSchema

func ValidateSchema(xml string) error

Types

type Document

type Document struct {
	Format string `xml:"xmlns,attr"`
}

Basic struct used to test XML format

type EndPointInput

type EndPointInput struct {
	SchemaFile []byte
	Vars       sendmodel.SendVariables
	// contains filtered or unexported fields
}

func (*EndPointInput) SetSchema

func (i *EndPointInput) SetSchema(path string) (*xsd.Schema, error)

type ISOMessage

type ISOMessage interface {
	String() (result string, ok bool)
}

Defines an ISO Message Can either be ISO 8583 or 20022

type ResponseHandler

type ResponseHandler struct {
	// contains filtered or unexported fields
}

func Initialize

func Initialize() (*ResponseHandler, error)

func (*ResponseHandler) CreateCamt030

func (handler *ResponseHandler) CreateCamt030(participantBIC, caseId, assignmentId, xmlType, target string, statusCode int) []byte

func (*ResponseHandler) CreatePacs002

func (handler *ResponseHandler) CreatePacs002(participantBIC, originalInstrId, target string, statusCode int, originalGroupInf *reportstruct.OriginalGroupInformation29) []byte

func (*ResponseHandler) KafkaErrorRouter

func (handler *ResponseHandler) KafkaErrorRouter(xmlMsgType, msgId, instructionId, ofiId, rfiId string, statusCode int, generateReport bool) (string, []byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL