health

package
v0.0.0-...-9bfc92b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthsCheck

func HealthsCheck(w http.ResponseWriter, r *http.Request)

func InitRoutes

func InitRoutes()

func Launcher

func Launcher()

func ProfileCheck

func ProfileCheck(w http.ResponseWriter, r *http.Request)

func StatusCheck

func StatusCheck(w http.ResponseWriter, r *http.Request)

func TheAppConfig

func TheAppConfig() *helpers.Cfg

func TheDb

func TheDb() *sql.DB

func TheLogger

func TheLogger() *logger.Logger

func TheRouter

func TheRouter() *mux.Router

func TheSecureRouter

func TheSecureRouter() *mux.Router

func TheVersion

func TheVersion() string

Types

type Health

type Health struct {
	// Title of the api page
	// in: string
	// required: true
	// example: IT works !
	Title string `json:"title"`
	// Message of the api
	// in: string
	// required: true
	// example: Gosmo is feeling happy today :)
	Message string `json:"message"`
}

swagger:model Health

func GetHealth

func GetHealth() *Health

type Status

type Status struct {
	// Title of the api page
	// in: string
	// required: true
	// example: Status
	Title string `json:"title"`
	// Name of the api
	// in: string
	// required: true
	// example: CosmoAppy
	Name string `json:"name"`
	// Version of the api
	// in: string
	// required: true
	// example: latest
	Version string `json:"version"`
	// Message of the api
	// in: string
	// required: true
	// example: Gosmo is feeling happy today :)
	Message string `json:"message"`
	// DbStatus of the api
	// in: string
	// required: true
	// example: everything is awesome <3
	DbStatus string `json:"dbstatus"`
}

swagger:model Status

func GetStatus

func GetStatus() *Status

Jump to

Keyboard shortcuts

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