router

package
v0.0.0-...-61dada9 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: ISC Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewRouter

func NewRouter(conf *config.Config, jwt *jwt.JWT, db *kvdb.KVStore, handler AllHandler) *gin.Engine

NewRouter defines the routers of REST

Types

type AllHandler

type AllHandler struct {
	fx.In
	IndexHandlers *handler.Handler
	AuthHandlers  *auth.Handler
	CmdHandlers   *cmd.Handler
	FileHandlers  *file.Handler
}

AllHandler ... Add all handlers here for REST API

type ErrorChan

type ErrorChan chan error

ErrorChan ...

func NewStarter

func NewStarter(lifecycle fx.Lifecycle, engine *gin.Engine, config *config.Config) ErrorChan

NewStarter starts the http server with the port

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳