Documentation
¶
Index ¶
- type EventManager
- func (m *EventManager) AddEvent(ctx context.Context, params event_management.AddEventParams) middleware.Responder
- func (m *EventManager) GetHistory(ctx context.Context, params event_management.GetHistoryParams) middleware.Responder
- func (m *EventManager) GetState(ctx context.Context, params event_management.GetStateParams) middleware.Responder
- func (m *EventManager) ListStates(ctx context.Context, params event_management.ListStatesParams) middleware.Responder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventManager ¶
type EventManager struct {
// contains filtered or unexported fields
}
EventManager is the struct defined to group and contain all the methods that interact with the events endpoints. Parameters: - 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 ¶
func New(db *dbManager.DbParameter, monit *statusManager.StatusManager, filters []string) *EventManager
New is the function to create the struct EventManager. Parameters: - DbParameter: reference pointing to the DbParameter that allows the interaction with the DBManager methods. - monit: a reference to the StatusManager to be able to interact with the status subsystem. Returns: - EventManager: struct to interact with EventManager subsystem functionalities.
func (*EventManager) AddEvent ¶
func (m *EventManager) AddEvent(ctx context.Context, params event_management.AddEventParams) middleware.Responder
AddEvent (Swagger func) is the function behind the (POST) API Endpoint /event Its job is to include in the system the information given by the new event.
func (*EventManager) GetHistory ¶
func (m *EventManager) GetHistory(ctx context.Context, params event_management.GetHistoryParams) middleware.Responder
GetHistory (Swagger func) is the function behind the (GET) API Endpoint /event/history/{id} Its job is to provide the history of changes in the state of the provided account.
func (*EventManager) GetState ¶
func (m *EventManager) GetState(ctx context.Context, params event_management.GetStateParams) middleware.Responder
GetState (Swagger func) is the function behind the (GET) API Endpoint /event/status/{id} Its job is to get the actual state of the provided account.
func (*EventManager) ListStates ¶
func (m *EventManager) ListStates(ctx context.Context, params event_management.ListStatesParams) middleware.Responder
ListState (Swagger func) is the function behind the (GET) API Endpoint /event/status Its job is to get the actual state of the provided account.