Documentation ¶
Index ¶
- Constants
- func Create(ctx context.Context, priceInput *mongoTypes.MongoPrice) (*mongoTypes.MongoPrice, error)
- func Delete(ctx context.Context, priceId string) (bool, *mongoTypes.MongoPrice, error)
- func FindOne(ctx context.Context, property string, propertyValue string) (*apicontracts.Price, error)
- func GetAll(ctx context.Context) (*[]apicontracts.Price, error)
- func GetById(ctx context.Context, priceId string) (*apicontracts.Price, error)
- func GetByProperty(ctx context.Context, property string, propertyValue string) (*[]apicontracts.Price, error)
- func Update(ctx context.Context, priceId string, priceInput mongoTypes.MongoPrice) (*mongoTypes.MongoPrice, *mongoTypes.MongoPrice, error)
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 GetByProperty ¶
func Update ¶
func Update(ctx context.Context, priceId string, priceInput mongoTypes.MongoPrice) (*mongoTypes.MongoPrice, *mongoTypes.MongoPrice, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.