pricesrepo

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionName = "prices"
)

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, priceInput *mongoTypes.MongoPrice) (*mongoTypes.MongoPrice, error)

func Delete

func Delete(ctx context.Context, priceId string) (bool, *mongoTypes.MongoPrice, error)

func FindOne

func FindOne(ctx context.Context, property string, propertyValue string) (*apicontracts.Price, error)

func GetAll

func GetAll(ctx context.Context) (*[]apicontracts.Price, error)

func GetById

func GetById(ctx context.Context, priceId string) (*apicontracts.Price, error)

func GetByProperty

func GetByProperty(ctx context.Context, property string, propertyValue string) (*[]apicontracts.Price, error)

func Update

Types

This section is empty.

Jump to

Keyboard shortcuts

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