control

package
v0.0.0-...-eb19f60 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ConfigDatabase = "etc/database.yaml"
	ConfigApp      = "etc/app.yaml"
)

configs

Variables

View Source
var GinEntries []*GinEntry

GinEntries 处理对象

Functions

func MainEntry

func MainEntry()

MainEntry 主入口

Types

type AppConfig

type AppConfig struct {
	Gin struct {
		AppSubURL string `json:"app_sub_url" yaml:"app_sub_url"`
		AppName   string `json:"app_name" yaml:"app_name"`
		Address   string `json:"address" yaml:"address"`
		Mode      string `json:"mode" yaml:"mode"`
	} `json:"gin" yaml:"gin"`
}

AppConfig 应用配置

type GinEntry

type GinEntry struct {
	Root       string
	APIVersion string
	Handlers   []GinHandler
}

type GinHandler

type GinHandler struct {
	Path        string
	HandleFuncs map[string]func(*gin.Context)
}

Jump to

Keyboard shortcuts

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