Documentation ¶
Index ¶
- type Definitions
- func (d *Definitions) GetFieldCodeByFieldName(n string) (int32, error)
- func (d *Definitions) GetFieldHeaderByFieldName(n string) (*FieldHeader, error)
- func (d *Definitions) GetFieldInfoByFieldName(n string) (*fieldInfo, error)
- func (d *Definitions) GetFieldInstanceByFieldName(n string) (*FieldInstance, error)
- func (d *Definitions) GetFieldNameByFieldHeader(fh FieldHeader) (string, error)
- func (d *Definitions) GetLedgerEntryTypeCodeByLedgerEntryTypeName(n string) (int32, error)
- func (d *Definitions) GetLedgerEntryTypeNameByLedgerEntryTypeCode(c int32) (string, error)
- func (d *Definitions) GetTransactionResultNameByTransactionResultTypeCode(c int32) (string, error)
- func (d *Definitions) GetTransactionResultTypeCodeByTransactionResultName(n string) (int32, error)
- func (d *Definitions) GetTransactionTypeCodeByTransactionTypeName(n string) (int32, error)
- func (d *Definitions) GetTransactionTypeNameByTransactionTypeCode(c int32) (string, error)
- func (d *Definitions) GetTypeCodeByFieldName(n string) (int32, error)
- func (d *Definitions) GetTypeCodeByTypeName(n string) (int32, error)
- func (d *Definitions) GetTypeNameByFieldName(n string) (string, error)
- type FieldHeader
- type FieldInstance
- type NotFoundError
- type NotFoundErrorFieldHeader
- type NotFoundErrorInt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definitions ¶
type Definitions struct { Types map[string]int32 LedgerEntryTypes map[string]int32 Fields fieldInstanceMap TransactionResults map[string]int32 TransactionTypes map[string]int32 FieldIdNameMap map[FieldHeader]string }
func Get ¶
func Get() *Definitions
func (*Definitions) GetFieldCodeByFieldName ¶
func (d *Definitions) GetFieldCodeByFieldName(n string) (int32, error)
Returns the field code associated with the given field name.
func (*Definitions) GetFieldHeaderByFieldName ¶
func (d *Definitions) GetFieldHeaderByFieldName(n string) (*FieldHeader, error)
Returns the field header struct associated with the given field name.
func (*Definitions) GetFieldInfoByFieldName ¶
func (d *Definitions) GetFieldInfoByFieldName(n string) (*fieldInfo, error)
Returns the field info struct associated with the given field name.
func (*Definitions) GetFieldInstanceByFieldName ¶
func (d *Definitions) GetFieldInstanceByFieldName(n string) (*FieldInstance, error)
Returns the field instance struct associated with the given field name.
func (*Definitions) GetFieldNameByFieldHeader ¶
func (d *Definitions) GetFieldNameByFieldHeader(fh FieldHeader) (string, error)
Returns the field name associated with the given field header struct.
func (*Definitions) GetLedgerEntryTypeCodeByLedgerEntryTypeName ¶
func (d *Definitions) GetLedgerEntryTypeCodeByLedgerEntryTypeName(n string) (int32, error)
Returns the ledger entry type code associated with the ledger entry type name.
func (*Definitions) GetLedgerEntryTypeNameByLedgerEntryTypeCode ¶
func (d *Definitions) GetLedgerEntryTypeNameByLedgerEntryTypeCode(c int32) (string, error)
Returns the ledger entry type name associated with the ledger entry type code.
func (*Definitions) GetTransactionResultNameByTransactionResultTypeCode ¶
func (d *Definitions) GetTransactionResultNameByTransactionResultTypeCode(c int32) (string, error)
Returns the transaction result name associated with the transaction result type code.
func (*Definitions) GetTransactionResultTypeCodeByTransactionResultName ¶
func (d *Definitions) GetTransactionResultTypeCodeByTransactionResultName(n string) (int32, error)
Returns the transaction result type code associated with the transaction result name.
func (*Definitions) GetTransactionTypeCodeByTransactionTypeName ¶
func (d *Definitions) GetTransactionTypeCodeByTransactionTypeName(n string) (int32, error)
Returns the transaction type code associated with the transaction type name.
func (*Definitions) GetTransactionTypeNameByTransactionTypeCode ¶
func (d *Definitions) GetTransactionTypeNameByTransactionTypeCode(c int32) (string, error)
Returns the transaction type name associated with the transaction type code.
func (*Definitions) GetTypeCodeByFieldName ¶
func (d *Definitions) GetTypeCodeByFieldName(n string) (int32, error)
Returns the type code associated with the given field name.
func (*Definitions) GetTypeCodeByTypeName ¶
func (d *Definitions) GetTypeCodeByTypeName(n string) (int32, error)
Returns the type code associated with the given type name.
func (*Definitions) GetTypeNameByFieldName ¶
func (d *Definitions) GetTypeNameByFieldName(n string) (string, error)
Returns the serialization data type for the given field name.
type FieldHeader ¶
func CreateFieldHeader ¶
func CreateFieldHeader(tc, fc int32) FieldHeader
type FieldInstance ¶
type FieldInstance struct { FieldName string FieldHeader *FieldHeader Ordinal int32 // contains filtered or unexported fields }
type NotFoundError ¶
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type NotFoundErrorFieldHeader ¶
type NotFoundErrorFieldHeader struct { Instance string Input FieldHeader }
func (*NotFoundErrorFieldHeader) Error ¶
func (e *NotFoundErrorFieldHeader) Error() string
type NotFoundErrorInt ¶
func (*NotFoundErrorInt) Error ¶
func (e *NotFoundErrorInt) Error() string