productPriceStory

package
v0.0.0-...-cc0f04f Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegister

func NewRegister(storage Storage, l *logg.Logger) handlers.Handler

Types

type ProductPriceStoryTable

type ProductPriceStoryTable struct {
	Id    int    `json:"id"`
	Price string `json:"price"`
	Date  string `json:"date"`
}

type Storage

type Storage interface {
	ProductPriceAddItems(ctx context.Context, p []ProductPriceStoryTable) error
	ProductPriceTableDeleteItem(ctx context.Context, id int) error

	ProductPriceTableFindOne(ctx context.Context, id int) (ProductPriceStoryTable, error)
	ProductPriceTableGetAll(ctx context.Context) ([]ProductPriceStoryTable, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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