fix

package
v0.0.0-...-e3369bb Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Tags map[uint64]Value
	// contains filtered or unexported fields
}

Message is a fix tag, value message

func New

func New() Message

New empty fix message

func (Message) GetTag

func (message Message) GetTag(tag uint64) (interface{}, error)

GetTag returns the value associated with the tag. This can be: nil, int32, uint32, int64, uint64, []byte, string, []Message (for sequences)

func (*Message) SetTag

func (message *Message) SetTag(tag uint64, value Value)

SetTag with value

func (Message) String

func (message Message) String() string

String representation of a fix message

type NullValue

type NullValue struct {
}

NullValue is an explicit null value

func (NullValue) Get

func (nullValue NullValue) Get() interface{}

Get nil value

func (NullValue) String

func (nullValue NullValue) String() string

String nil value with pipe seperator

type RawValue

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

RawValue is a raw go type that can be used

func (RawValue) Get

func (rawValue RawValue) Get() interface{}

Get raw value

func (RawValue) String

func (rawValue RawValue) String() string

String is a value with a pipe seperator

type SequenceValue

type SequenceValue struct {
	Values []Message
}

SequenceValue represents a repeating group

func NewSequenceValue

func NewSequenceValue(sequenceSize uint32) SequenceValue

NewSequenceValue with the given number of repeating groups

func (SequenceValue) Get

func (sequenceValue SequenceValue) Get() interface{}

Get returns an array of repeating groups, which are of the overall fix message type

func (*SequenceValue) SetValue

func (sequenceValue *SequenceValue) SetValue(index uint32, tag uint64, value Value)

SetValue of tag within the given repeating group index

func (SequenceValue) String

func (sequenceValue SequenceValue) String() string

String representation of the repeating group

type Value

type Value interface {
	Get() interface{}
	String() string
}

Value of a tag within a fix message

func NewRawValue

func NewRawValue(value interface{}) Value

NewRawValue of the given type, if null we return a null fix representation explicitly

Jump to

Keyboard shortcuts

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