gin

package module
v0.0.0-...-87b3bb6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opt *OptGin) (*logrus.Logger, gin.HandlerFunc, error)

New

  • @msg create logrus instance for gin middleware
  • @param opt
  • @return: *logrus.Logger return logrus for configuration in advance
  • @return: gin.HandlerFunc
  • @return: error

Types

type OptGin

type OptGin struct {
	//example 'user/logout', this route will be ignored in log
	SkipRoute map[string]struct{}
	OptLogrus *c.OptLog
}

func GetOpt

func GetOpt() *OptGin

GetOpt

  • @msg get default parameters
  • @return: *OptGin

Jump to

Keyboard shortcuts

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