router

package
v0.0.0-...-3311072 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = "v1"
)

api version

Variables

This section is empty.

Functions

func Cors

func Cors() gin.HandlerFunc

Cors ...

Types

type Router

type Router struct {
	// contains filtered or unexported fields
}

Router service router

func (*Router) InitRouter

func (r *Router) InitRouter(ctx *srvctx.Context) error

InitRouter init router

func (*Router) SetupRouter

func (r *Router) SetupRouter() *gin.Engine

SetupRouter add routes for rest api server

Jump to

Keyboard shortcuts

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