store

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Templates map[uint32]Template
}

Store represents a loaded set of Templates that can be used to Serialise/Deserialise FAST messages

type Template

type Template struct {
	TemplateUnits []Unit
	Logger        *log.Logger
}

Template represents an ordered List of operations needed to Serialise/Deserialise a FAST message

func (Template) Deserialise

func (template Template) Deserialise(inputSource *bytes.Buffer, pMap *presencemap.PresenceMap, dictionary *dictionary.Dictionary) (*fix.Message, error)

Deserialise a message from the input source iterating through the TemplateUnits to do this

type Unit

type Unit interface {
	Deserialise(inputSource *bytes.Buffer, pMap *presencemap.PresenceMap, dictionary *dictionary.Dictionary) (fix.Value, error)
	GetTagId() uint64
	RequiresPmap() bool
}

Unit represents an element within a FAST Template, with the ability to Serialise/Deserialise a part of a FAST message

Jump to

Keyboard shortcuts

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