info

package
v1.0.1-pre Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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