base

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultGin

func CreateDefaultGin(
	isProduct bool,
	isCors bool,
	logFolderPath string,
	corsAllowOrigins []string,
	corsAllowHeaders []string,
	groupedControllers map[string][]restfulrouter.IBaseController) (*gin.Engine, error)

CreateDefaultGin Create *gin.Engine with default log,using logrus

func CreateGin

func CreateGin(
	isProduct bool,
	isCors bool,
	logger restfulrouter.ILogger,
	corsAllowOrigins []string,
	corsAllowHeaders []string,
	groupedControllers map[string][]restfulrouter.IBaseController) (*gin.Engine, error)

CreateGin create *gin.Engine with custom logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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