Documentation
¶
Index ¶
- type SkuManager
- func (m *SkuManager) CreateSku(ctx context.Context, params sku_management.CreateSkuParams) middleware.Responder
- func (m *SkuManager) GetSku(ctx context.Context, params sku_management.GetSkuParams) middleware.Responder
- func (m *SkuManager) ListSkus(ctx context.Context, params sku_management.ListSkusParams) middleware.Responder
- func (m *SkuManager) UpdateSku(ctx context.Context, params sku_management.UpdateSkuParams) middleware.Responder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkuManager ¶
type SkuManager struct {
// contains filtered or unexported fields
}
SkuManager 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) *SkuManager
New is the function to create the struct SkuManager. 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: - SkuManager: struct to interact with SkuManager subsystem functionalities.
func (*SkuManager) CreateSku ¶
func (m *SkuManager) CreateSku(ctx context.Context, params sku_management.CreateSkuParams) middleware.Responder
CreateSku (Swagger func) is the function behind the (POST) endpoint /sku Its job is to add a new Sku to the system.
func (*SkuManager) GetSku ¶
func (m *SkuManager) GetSku(ctx context.Context, params sku_management.GetSkuParams) middleware.Responder
GetSku (Swagger func) is the function behind the (GET) endpoint /sku/{id} Its job is to get the Sku linked to the provided id.
func (*SkuManager) ListSkus ¶
func (m *SkuManager) ListSkus(ctx context.Context, params sku_management.ListSkusParams) middleware.Responder
ListSkus (Swagger func) is the function behind the (GET) endpoint /sku Its job is to get the list of Skus in the system.
func (*SkuManager) UpdateSku ¶
func (m *SkuManager) UpdateSku(ctx context.Context, params sku_management.UpdateSkuParams) middleware.Responder
UpdateSku (Swagger func) is the function behind the (PUT) endpoint /sku/{id} Its job is to update the liked Sku to the provided ID with the provided data.