Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestInfo = &entities.App{ Version: "1.0.0", GoVersion: "go1.23.2", BuildTime: time.Date(2023, 1, 1, 0, 0, 0, 0, time.UTC), Git: entities.Git{ Branch: "main", Commit: "abcd1234", Repository: repoURL, }, Server: entities.Server{ OS: "linux", Arch: "amd64", Hostname: "localhost", URL: serverURL, IP: net.ParseIP("127.0.0.1"), Port: 8080, Interface: "eth0", Uptime: 24 * time.Hour, }, } )
Functions ¶
func GetAppInfo ¶
func GetAppInfo(svc service.InfoService) fiber.Handler
@Summary Get info about the app @Description Get info about the app and the server @Id get-app-info @Tags Info @Produce json @Success 200 {object} entities.AppInfoResponse @Failure 400 {object} HTTPError @Failure 401 {object} HTTPError @Failure 403 {object} HTTPError @Failure 404 {object} HTTPError @Failure 500 {object} HTTPError @Router /v1/info [get] @Security Keycloak
func RegisterRoutes ¶
func RegisterRoutes(r fiber.Router, svc service.InfoService)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.