memory

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage is used to store the most recent messages.

func NewStorage

func NewStorage() *Storage

NewStorage is a constructor for creation of a new in-memory Storage.

func (*Storage) GetCurrSeqNum

func (s *Storage) GetCurrSeqNum(storageID fix.StorageID) (int, error)

func (*Storage) GetNextSeqNum

func (s *Storage) GetNextSeqNum(storageID fix.StorageID) (int, error)

func (*Storage) Messages

func (s *Storage) Messages(_ fix.StorageID, msgSeqNumFrom, msgSeqNumTo int) ([]simplefixgo.SendingMessage, error)

Messages returns a message list, in a sequential order (starting with msgSeqNumFrom and ending with msgSeqNumTo).

func (*Storage) ResetSeqNum

func (s *Storage) ResetSeqNum(storageID fix.StorageID) error

func (*Storage) Save

func (s *Storage) Save(_ fix.StorageID, msg simplefixgo.SendingMessage, msgSeqNum int) error

Save saves a message with seq number to storage

func (*Storage) SetSeqNum added in v1.14.0

func (s *Storage) SetSeqNum(storageID fix.StorageID, seqNum int) error

Jump to

Keyboard shortcuts

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