router

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAlert added in v1.1.0

func RegisterAlert(group *gin.RouterGroup)

RegisterAlert is the sub-router of das for alert

func RegisterHealthcheck

func RegisterHealthcheck(group *gin.RouterGroup)

RegisterHealthcheck is the sub-router of das for healthcheck

func RegisterMetadata

func RegisterMetadata(group *gin.RouterGroup)

func RegisterQuery added in v1.1.0

func RegisterQuery(group *gin.RouterGroup)

RegisterQuery is the sub-router of das for query

func RegisterSQLAdvisor

func RegisterSQLAdvisor(group *gin.RouterGroup)

Types

type GinRouter

type GinRouter struct {
	Engine *gin.Engine
}

func NewGinRouter

func NewGinRouter() *GinRouter

func (*GinRouter) Register

func (gr *GinRouter) Register()

func (*GinRouter) Run

func (gr *GinRouter) Run(addr ...string) error

func (*GinRouter) ServeHTTP

func (gr *GinRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*GinRouter) Swagger

func (gr *GinRouter) Swagger()

type Router

type Router interface {
	http.Handler
	Register()
	Run(addr ...string) error
}

Jump to

Keyboard shortcuts

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