routes

package
v0.0.0-...-58fd0e2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewEngine

func NewEngine(conf *config.AppConfig, zw *logger.ZapWriter, cf *koanf.Koanf, log *zap.SugaredLogger) *gin.Engine

Types

type HttpEngine

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

func NewHttpEngine

func NewHttpEngine(
	router *gin.Engine,
	conf *config.AppConfig,
	log *zap.SugaredLogger,
	ctx *system.AppContext,
	v1UserRoute *v1.UserRoute,
) (*HttpEngine, error)

func (*HttpEngine) ConfigCors

func (r *HttpEngine) ConfigCors()

func (*HttpEngine) Register

func (r *HttpEngine) Register()

func (*HttpEngine) Run

func (r *HttpEngine) Run() error

func (*HttpEngine) SetCredentials

func (r *HttpEngine) SetCredentials(b bool)

func (*HttpEngine) SetExposeHeaders

func (r *HttpEngine) SetExposeHeaders(s []string)

func (*HttpEngine) SetHeaders

func (r *HttpEngine) SetHeaders(s []string)

func (*HttpEngine) SetMaxAge

func (r *HttpEngine) SetMaxAge(age time.Duration)

func (*HttpEngine) SetMethods

func (r *HttpEngine) SetMethods(s []string)

func (*HttpEngine) SetOrigin

func (r *HttpEngine) SetOrigin(s []string)

func (*HttpEngine) SetOriginFun

func (r *HttpEngine) SetOriginFun(f func(origin string) bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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