Documentation
¶
Index ¶
- type PriceManager
- func (m *PriceManager) CreateSkuPrice(ctx context.Context, params price_management.CreateSkuPriceParams) middleware.Responder
- func (m *PriceManager) GetSkuPrice(ctx context.Context, params price_management.GetSkuPriceParams) middleware.Responder
- func (m *PriceManager) ListSkuPrices(ctx context.Context, params price_management.ListSkuPricesParams) middleware.Responder
- func (m *PriceManager) UpdateSkuPrice(ctx context.Context, params price_management.UpdateSkuPriceParams) middleware.Responder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriceManager ¶
type PriceManager struct {
// contains filtered or unexported fields
}
PriceManager is the struct defined to group and contain all the methods that interact with the sku subsystem. Parameters: - basePath: a string with the base path of the system. - db: a DbParameter reference to be able to use the DBManager methods. - s.monit. a StatusManager reference to be able to use the status subsystem methods.
func New ¶
func New(db *dbManager.DbParameter, monit *statusManager.StatusManager, bp string) *PriceManager
New is the function to create the struct PriceManager. Parameters: - DbParameter: reference pointing to the DbParameter that allows the interaction with the DBManager methods. - StatusParameter: reference poining to the StatusManager that allows the interaction with the StatusManager methods. - bp: a string containing the base path of the service. Returns: - PriceManager: struct to interact with PriceManager subsystem functionalities.
func (*PriceManager) CreateSkuPrice ¶
func (m *PriceManager) CreateSkuPrice(ctx context.Context, params price_management.CreateSkuPriceParams) middleware.Responder
CreateSkuPrice (Swagger func) is the function behind the (POST) endpoint /sku/price Its job is to add a new Sku price to the system.
func (*PriceManager) GetSkuPrice ¶
func (m *PriceManager) GetSkuPrice(ctx context.Context, params price_management.GetSkuPriceParams) middleware.Responder
GetSkuPrice (Swagger func) is the function behind the () endpoint /sku/price/{id} Its job is to get the Sku price linked to the provided id.
func (*PriceManager) ListSkuPrices ¶
func (m *PriceManager) ListSkuPrices(ctx context.Context, params price_management.ListSkuPricesParams) middleware.Responder
ListSkuPrices (Swagger func) is the function behind the (GET) endpoint /sku/price Its job is to get the list of Sku prices in the system.
func (*PriceManager) UpdateSkuPrice ¶
func (m *PriceManager) UpdateSkuPrice(ctx context.Context, params price_management.UpdateSkuPriceParams) middleware.Responder
UpdateSkuPrice (Swagger func) is the function behind the (PUT) endpoint /sku/price/{id} Its job is to update the liked Sku price to the provided ID with the provided data.