Documentation ¶
Index ¶
- func CreateTask()
- func CreateUser(c *fiber.Ctx) error
- func GetAllMemoryStats(c *fiber.Ctx) error
- func GetCPUInfo(c *fiber.Ctx) error
- func GetConnections(c *fiber.Ctx) error
- func GetConntrackInfo(c *fiber.Ctx) error
- func GetCpuLoad(C *fiber.Ctx) error
- func GetDiskUsage(c *fiber.Ctx) error
- func GetFullMemoryUsage(c *fiber.Ctx) error
- func GetHostInfo(c *fiber.Ctx) error
- func GetInterfaces(c *fiber.Ctx) error
- func GetMemoryUsage(c *fiber.Ctx) error
- func GetNetIOInfo(c *fiber.Ctx) error
- func GetSwapDevices(c *fiber.Ctx) error
- func GetSwapUsage(c *fiber.Ctx) error
- func GetUserInfo(c *fiber.Ctx) error
- func RenewTokens(c *fiber.Ctx) error
- func UserLogin(c *fiber.Ctx) error
- func UserLogout(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶
func CreateTask()
func CreateUser ¶
func CreateUser(c *fiber.Ctx) error
CreateUser method: to create a new user (only accessible to admins) @Description Create a new user @Summary Create a new user @Tags user @Accept json @Produce json @Param email body string true "Email" @Param password body string true "Password" @Param first_name body string true "First Name" @Param last_name body string true "Last Name" @Param role body string true "Role" @Success 200 {object} auth.User @Router /v1/users/create/ [post]
func GetAllMemoryStats ¶
func GetAllMemoryStats(c *fiber.Ctx) error
GetAllMemoryStats method: to get a systems memory stats @Description Get a systems memory stats @Summary Get a systems memory stats @Tags memory @Accept json @Produce json @Success 200 {object} memory.AllMemoryResponse @Router /v1/memory/ [get]
func GetCPUInfo ¶
func GetCPUInfo(c *fiber.Ctx) error
func GetConnections ¶
func GetConnections(c *fiber.Ctx) error
func GetConntrackInfo ¶
func GetConntrackInfo(c *fiber.Ctx) error
func GetCpuLoad ¶
func GetCpuLoad(C *fiber.Ctx) error
func GetDiskUsage ¶
func GetDiskUsage(c *fiber.Ctx) error
GetDiskUsage method: to get a systems disk usage @Description Get a systems disk usage @Summary Get a systems disk usage @Tags disk @Accept json @Produce json @Success 200 {object} disk.DiskResponse @Router /api/v1/disk/usage/ [get]
func GetFullMemoryUsage ¶
func GetFullMemoryUsage(c *fiber.Ctx) error
func GetHostInfo ¶
func GetHostInfo(c *fiber.Ctx) error
func GetInterfaces ¶
func GetInterfaces(c *fiber.Ctx) error
func GetMemoryUsage ¶
func GetMemoryUsage(c *fiber.Ctx) error
func GetNetIOInfo ¶
func GetNetIOInfo(c *fiber.Ctx) error
func GetSwapDevices ¶
func GetSwapDevices(c *fiber.Ctx) error
func GetSwapUsage ¶
func GetSwapUsage(c *fiber.Ctx) error
func GetUserInfo ¶
func GetUserInfo(c *fiber.Ctx) error
func RenewTokens ¶
func RenewTokens(c *fiber.Ctx) error
RenewTokens method: to renew expired tokens @Description Renew expired tokens @Summary Renew expired tokens @Tags token @Accept json @Produce json @Param refresh_token body string true "Refresh Token" @Success 200 {object} auth.Renew @Security ApiKeyAuth @Router /v1/tokens/renew/ [post]
func UserLogout ¶
func UserLogout(c *fiber.Ctx) error
Types ¶
This section is empty.