gin_run

package
v0.0.0-...-b66827d Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinRun

func GinRun(fnRouter RouterFun, mysqqdb ...db.AutoDB)

func Http

func Http(engine *gin.Engine, port string) *http.Server

func HttpRouterServe

func HttpRouterServe(port string, fnRouter RouterFun) (*http.Server, *gin.Engine)

func HttpRun

func HttpRun(fns func() error)

func InitROuter

func InitROuter(Router *gin.RouterGroup)

test

func Routers

func Routers(fn RouterFun, ginType int) *gin.Engine

Types

type FnHttp

type FnHttp func(group *gin.Engine)

type RouterFun

type RouterFun func(group *gin.RouterGroup)

Jump to

Keyboard shortcuts

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