planManager

package
v0.0.0-...-33e56a9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanManager

type PlanManager struct {
	// contains filtered or unexported fields
}

PlanManager is the struct defined to group and contain all the methods that interact with the plan subsystem. Parameters: - basePath: a string with the base path of the system. - db: a DbParameter reference to be able to use the DBManager methods. - monit: a StatusManager reference to be able to use the status subsystem methods.

func New

New is the function to create the struct PlanManager. 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: - PlanManager: struct to interact with PlanManager subsystem functionalities.

func (*PlanManager) CreatePlan

CreatePlan (Swagger func) is the function behind the (POST) endpoint /plan Its job is to add a new plan in the system.

func (*PlanManager) GetCompletePlan

GetCompletePlan (Swagger func) is the function behind the (GET) endpoint /plan/complete/{id} Its job is to retrieve the full information related to a plan provided its ID.

func (*PlanManager) GetPlan

GetPlan (Swagger func) is the function behind the (GET) endpoint /plan/{id} Its job is to retrieve the information related to a plan provided its ID.

func (*PlanManager) ListCompletePlans

ListCompletePlans (Swagger func) is the function behind the (GET) endpoint /plan/complete Its job is to retrieve the full information, including linked skus, related to a plan provided its ID.

func (*PlanManager) ListPlans

ListPlans (Swagger func) is the function behind the (GET) endpoint /plan Its job is to retrieve the information related to a plan provided its ID.

func (*PlanManager) UpdatePlan

UpdatePlan (Swagger func) is the function behind the (PUT) endpoint /plan/{id} Its job is to update the plan linked to the provided ID with the new plan data.

Jump to

Keyboard shortcuts

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