memory

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 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(maxSize int, bufferSize int) *Storage

NewStorage is a constructor for creation of a new in-memory Storage. bufferSize determines the size of additional messages that can be put to the storage (the larger the buffer size, the less frequently the storage is flushed). maxSize specifies the maximum number of messages the storage can contain.

func (*Storage) Messages

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

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

func (*Storage) Save

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

Jump to

Keyboard shortcuts

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