handler

package
v0.0.0-...-3839eb7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BasePath = "/api/v1/"
	DocPath  = "/api/v1/doc"
)

Variables

View Source
var Config = &ginSwagger.Config{
	URL:                      "doc.json",
	DocExpansion:             "list",
	InstanceName:             "appapi",
	Title:                    "AppAPI",
	DefaultModelsExpandDepth: 0,
	DeepLinking:              true,
	PersistAuthorization:     false,
	Oauth2DefaultClientID:    "",
}

Functions

This section is empty.

Types

type Router

type Router struct {
	Email  email.HandlerRouter
	System system.HandlerRouter
	User   user.HandlerRouter
}

Router has no influence, just for wire injection

func SetupHandler

func SetupHandler(cfg *conf.AppConf, httpserver *gin.Engine, datasource *data.DataSource) (Router, func(), error)

SetupHandler http handlers

Directories

Path Synopsis
Package docs Code generated by swaggo/swag at 2024-03-05 22:17:55.277895 +0800 CST m=+2.658018401.
Package docs Code generated by swaggo/swag at 2024-03-05 22:17:55.277895 +0800 CST m=+2.658018401.

Jump to

Keyboard shortcuts

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