eventManager

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: 10 Imported by: 0

Documentation

Index

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

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