basegin

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 5 Imported by: 0

README

basegin

base setting and toolkit for gin framework

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][]router.IBaseController) (*gin.Engine, error)

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

func CreateGin

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

CreateGin create *gin.Engine with custom logger

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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