app

package
v0.0.0-...-45c08f6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() *echo.Echo

Init godoc

func Logger

func Logger(c echo.Context) *logrus.Entry

Logger godoc

Types

type Application

type Application struct {
	Server  *echo.Echo  `json:"server"`
	Name    string      `json:"name"`
	Version string      `json:"version"`
	ENV     string      `json:"env"`
	Config  viper.Viper `json:"application_config"`
	DB      *gorm.DB    `json:"db"`
}

Application godoc

var API *Application

API godoc

type CustomValidator

type CustomValidator struct {
	// contains filtered or unexported fields
}

CustomValidator godoc

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

Validate godoc

Jump to

Keyboard shortcuts

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