api

package
v0.0.0-...-fdb0c6d Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const NotFound string = "NOT_FOUND"
View Source
const Success string = "SUCCESS"

Variables

This section is empty.

Functions

func Init

func Init()

Init the configuration of the APIs

func NewUserController

func NewUserController() *userController

NewUserController is the constructor of the object

func SetupRouter

func SetupRouter() *gin.Engine

SetupRouter determine all the routes for this service

Types

type ApiErrorResponse

type ApiErrorResponse struct {
	Error string `json:"error"`
}

type HealthController

type HealthController struct {
}

HealthController who handle health check

func (HealthController) HealthCheck

func (h HealthController) HealthCheck(c *gin.Context)

HealthCheck return the Status of the current app @Summary Health check endpoint @Description health check endpoint to know if the service is up @Tags healthcheck @Produce json @Success 200 {object} api.healthCheck @Router /health [get]

Jump to

Keyboard shortcuts

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