engine

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FastEngine

type FastEngine interface {
	Deserialise(message *bytes.Buffer) (*fix.Message, error)
}

FastEngine capable of deserialising a fast encoded message from the given byte buffer. This is not thread safe, and should only be called from a single threaded context, due to the fast engine making use of a dictionary of previous values

func New

func New(templateStore store.Store, logger *log.Logger) FastEngine

New instance of a FAST engine, that can serialise/deserialise FAST messages using the template store provided

func NewFromTemplateFile

func NewFromTemplateFile(templateFile string, logger *log.Logger) (FastEngine, error)

NewFromTemplateFile of a FAST engine, that can serialise/deserialise FAST messages using the template file provided. This file should be xml, if we are unable to find the file or parse it, an error is returned

Jump to

Keyboard shortcuts

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