Versions in this module Expand all Collapse all v1 v1.0.4 May 15, 2021 v1.0.3 May 15, 2021 v1.0.2 May 15, 2021 Changes in this version + var ErrUnsupportedEncoding = errors.New("libiso: Invalid/Unsupported field encoding") + type Tuple struct + func NewTuple(s string, s2 string) *Tuple v0 v0.1.1 Mar 22, 2020 v0.1.0 Jun 16, 2019 Changes in this version + const IsoFormatError + const IsoMsg1100 + const IsoMsg1110 + const IsoMsg1420 + const IsoMsg1430 + const IsoMsg1804 + const IsoMsg1814 + const IsoRespApproval + const IsoRespDecline + const IsoRespDrop + const IsoRespPickup + const V0 + const V1 + func CopyRequestToResponse(isoReq *Iso8583Message, isoResp *Iso8583Message) + func GetSpecNames() []string + func ReadDemoSpecDefs() + func ReadSpecDefs(fileName string) + func ReadSpecDefsFromBuf(buf *bytes.Buffer) + type BitMap struct + func NewBitMap() *BitMap + func (bmp *BitMap) Bytes() []byte + func (bmp *BitMap) Def() string + func (bmp *BitMap) GetId() int + func (bmp *BitMap) IsOn(pos int) bool + func (bmp *BitMap) Parse(isoMsg *Iso8583Message, buf *bytes.Buffer) + func (bmp *BitMap) SetId(id int) + func (bmp *BitMap) SetOff(pos int) + func (bmp *BitMap) SetOn(pos int) + func (bmp *BitMap) SetSpec(isoMsgDef *MessageDef) + type BitmappedField interface + Bytes func() []byte + Def func() string + GetId func() int + IsOn func(int) bool + Parse func(isoMsg *Iso8583Message, buf *bytes.Buffer) + SetId func(int) + SetOff func(int) + SetOn func(int) + SetSpec func(isoMsgDef *MessageDef) + type FieldAttributes struct + DataEncoding string + FieldIndicatorEncoding string + FieldIndicatorLength int + FieldLength int + Key bool + Padding string + type FieldData struct + func (fldData *FieldData) BitmapDef() *BitMap + func (fldData *FieldData) Def() IsoField + func (fldData *FieldData) SetData(value string) + func (fldData FieldData) Bytes() []byte + func (fldData FieldData) String() string + type FieldDefExp struct + BitPosition int + Data string + Id int + JsSafeName string + Name string + func GetSpecLayout(specName string) []*FieldDefExp + type FixedFieldDef struct + func NewFixedFieldDef(pName string, pDataEncoding int, pFieldLen int) *FixedFieldDef + func (fieldDef *FixedFieldDef) Assemble(isoMsg *Iso8583Message, buf *bytes.Buffer) + func (fieldDef *FixedFieldDef) BitPosition() int + func (fieldDef *FixedFieldDef) DataLength() int + func (fieldDef *FixedFieldDef) Def() string + func (fieldDef *FixedFieldDef) EncodedLength(dataLen int) []byte + func (fieldDef *FixedFieldDef) GetId() int + func (fieldDef *FixedFieldDef) IsFixed() bool + func (fieldDef *FixedFieldDef) Parse(isoMsg *Iso8583Message, fData *FieldData, buf *bytes.Buffer) *FieldData + func (fieldDef *FixedFieldDef) SetBitPosition(id int) + func (fieldDef *FixedFieldDef) SetId(id int) + func (fieldDef *FixedFieldDef) String() string + type Iso8583Message struct + func NewIso8583Message(specName string) *Iso8583Message + func (isoMsg *Iso8583Message) Bitmap() *BitMap + func (isoMsg *Iso8583Message) Bytes() []byte + func (isoMsg *Iso8583Message) Dump() string + func (isoMsg *Iso8583Message) Field(pos int) (*FieldData, error) + func (isoMsg *Iso8583Message) GetBinaryBitmap() string + func (isoMsg *Iso8583Message) GetFieldByName(name string) *FieldData + func (isoMsg *Iso8583Message) GetFieldData(position int) (data string, err error) + func (isoMsg *Iso8583Message) GetFieldDataById(id int) *FieldData + func (isoMsg *Iso8583Message) GetMessageType() string + func (isoMsg *Iso8583Message) IsSelected(position int) bool + func (isoMsg *Iso8583Message) Parse(buf *bytes.Buffer) (err error) + func (isoMsg *Iso8583Message) SetData(data []string) + func (isoMsg *Iso8583Message) SetField(pos int, value string) + func (isoMsg *Iso8583Message) SetFieldData(id int, fieldVal string) + func (isoMsg *Iso8583Message) SpecName() string + func (isoMsg *Iso8583Message) TabularFormat() *list.List + func (isoMsg *Iso8583Message) ToWebMsg(isReq bool) *WebMsgData + type IsoField interface + Assemble func(*Iso8583Message, *bytes.Buffer) + BitPosition func() int + DataLength func() int + Def func() string + EncodedLength func(int) []byte + GetId func() int + IsFixed func() bool + Parse func(*Iso8583Message, *FieldData, *bytes.Buffer) *FieldData + SetBitPosition func(int) + SetId func(int) + String func() string + type JsonFieldDef struct + Attrs FieldAttributes + BitPosition int + Children []JsonFieldDef + Name string + Type string + type JsonSpecDef struct + Fields []JsonFieldDef + SpecName string + type JsonSpecDefs struct + Specs []JsonSpecDef + type MessageDef struct + func GetMessageDefByName(specName string) *MessageDef + func GetSpecs() []*MessageDef + func (isoDef *MessageDef) Name() string + type VariableFieldDef struct + func NewVariableFieldDef(pName string, pLenEncoding int, pDataEncoding int, pLenIndSize int) *VariableFieldDef + func (field *VariableFieldDef) Assemble(isoMsg *Iso8583Message, buf *bytes.Buffer) + func (field *VariableFieldDef) BitPosition() int + func (field *VariableFieldDef) DataLength() int + func (field *VariableFieldDef) Def() string + func (field *VariableFieldDef) EncodedLength(dataLen int) []byte + func (field *VariableFieldDef) GetId() int + func (field *VariableFieldDef) IsFixed() bool + func (field *VariableFieldDef) Parse(isoMsg *Iso8583Message, fData *FieldData, buf *bytes.Buffer) *FieldData + func (field *VariableFieldDef) SetBitPosition(id int) + func (field *VariableFieldDef) SetId(id int) + func (field *VariableFieldDef) String() string + type WebMsgData struct + DataArray []string + Spec string + Type string Other modules containing this package github.com/hmmftg/libiso/v2