routes

package
v0.0.0-...-4d27eac Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewEngine

func NewEngine(conf *configs.Config) *gin.Engine

Types

type HttpEngine

type HttpEngine struct {
	Options
}

func NewHttpEngine

func NewHttpEngine(opt Options) *HttpEngine

func (*HttpEngine) RegisterRoute

func (h *HttpEngine) RegisterRoute()

func (*HttpEngine) Run

func (h *HttpEngine) Run() (*http.Server, error)

type Options

type Options struct {
	Router  *gin.Engine
	Conf    *configs.Config
	Limiter *redis_rate.Limiter

	User *v1.UserRoute
}

type Registrable

type Registrable interface {
	RegisterRoute(*gin.RouterGroup)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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