definitions

package
v0.0.0-...-9abe75c Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

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

type FieldHeader struct {
	TypeCode  int32
	FieldCode int32
}

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

type NotFoundError struct {
	Instance string
	Input    string
}

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

type NotFoundErrorInt struct {
	Instance string
	Input    int32
}

func (*NotFoundErrorInt) Error

func (e *NotFoundErrorInt) Error() string

Jump to

Keyboard shortcuts

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