memory

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: AGPL-3.0 Imports: 3 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(pk string) (int, error)

func (*Storage) GetNextSeqNum

func (s *Storage) GetNextSeqNum(pk string) (int, error)

func (*Storage) Messages

func (s *Storage) Messages(pk string, 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(pk string) error

func (*Storage) Save

func (s *Storage) Save(pk string, msg simplefixgo.SendingMessage, msgSeqNum int) error

Save saves a message with seq number to storage

Jump to

Keyboard shortcuts

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