spreads

package
v0.0.0-...-2e430cb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 11 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
}

func NewStorage

func NewStorage(
	database *mongo.Database,
	spreadLinkBuilder spreadLinkBuilder,
) *Storage

func (*Storage) GetSpreadsByIDs

func (s *Storage) GetSpreadsByIDs(
	ctx context.Context,
	spreadIDs []model.SpreadIdentifier,
) ([]model.SpreadWithLink, error)

func (*Storage) SaveSpreads

func (s *Storage) SaveSpreads(
	ctx context.Context,
	spreads []model.Spread,
) ([]model.Spread, error)

func (*Storage) SearchSpreads

func (s *Storage) SearchSpreads(
	ctx context.Context,
	filter model.SpreadsFilter,
	offset, limit int64,
) ([]model.Spread, error)

Jump to

Keyboard shortcuts

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