Documentation ¶
Index ¶
- func HealthsCheck(w http.ResponseWriter, r *http.Request)
- func InitRoutes()
- func Launcher()
- func ProfileCheck(w http.ResponseWriter, r *http.Request)
- func StatusCheck(w http.ResponseWriter, r *http.Request)
- func TheAppConfig() *helpers.Cfg
- func TheDb() *sql.DB
- func TheLogger() *logger.Logger
- func TheRouter() *mux.Router
- func TheSecureRouter() *mux.Router
- func TheVersion() string
- type Health
- type Status
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 ProfileCheck ¶
func ProfileCheck(w http.ResponseWriter, r *http.Request)
func StatusCheck ¶
func StatusCheck(w http.ResponseWriter, r *http.Request)
func TheAppConfig ¶
func TheSecureRouter ¶
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
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
Click to show internal directories.
Click to hide internal directories.