Documentation ¶
Overview ¶
Package quotes contains the quotes storage in memory implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDBEmpty = errors.New("db is empty")
ErrDBEmpty is returned when the db is empty.
Functions ¶
Types ¶
type StorageInMemory ¶
type StorageInMemory struct {
// contains filtered or unexported fields
}
StorageInMemory is a quote storage in memory.
func NewStorageInMemory ¶
func NewStorageInMemory(logger *zap.Logger, db []model.Quote) *StorageInMemory
NewStorageInMemory creates a new quote storage in memory.
func (*StorageInMemory) GetQuoteList ¶
GetQuoteList returns a list of quotes.
Click to show internal directories.
Click to hide internal directories.