Documentation ¶
Index ¶
- func RegisterAlert(group *gin.RouterGroup)
- func RegisterHealth(group *gin.RouterGroup)
- func RegisterHealthcheck(group *gin.RouterGroup)
- func RegisterMetadata(group *gin.RouterGroup)
- func RegisterQuery(group *gin.RouterGroup)
- func RegisterSQLAdvisor(group *gin.RouterGroup)
- type GinRouter
- type Router
- type TokenAuth
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 RegisterHealth ¶ added in v1.1.1
func RegisterHealth(group *gin.RouterGroup)
RegisterHealth is the sub-router for health
func RegisterHealthcheck ¶
func RegisterHealthcheck(group *gin.RouterGroup)
RegisterHealthcheck is the sub-router of das for healthcheck
func RegisterMetadata ¶
func RegisterMetadata(group *gin.RouterGroup)
RegisterMetadata api to gin router
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 ¶
func (*GinRouter) ServeHTTP ¶
func (gr *GinRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)
func (*GinRouter) Use ¶ added in v1.1.1
func (gr *GinRouter) Use(middleware ...gin.HandlerFunc)
type Router ¶
type Router interface { http.Handler Use(middleware ...gin.HandlerFunc) ServeHTTP(w http.ResponseWriter, req *http.Request) Register() Run(addr ...string) error }
func NewGinRouter ¶
func NewGinRouter() Router
type TokenAuth ¶ added in v1.1.1
type TokenAuth struct {
Database middleware.Pool
}
func NewTokenAuth ¶ added in v1.1.1
func NewTokenAuth(database middleware.Pool) *TokenAuth
func NewTokenAuthWithGlobal ¶ added in v1.1.1
func NewTokenAuthWithGlobal() *TokenAuth
func (*TokenAuth) Execute ¶ added in v1.1.1
func (ta *TokenAuth) Execute(command string, args ...interface{}) (middleware.Result, error)
func (*TokenAuth) GetHandlerFunc ¶ added in v1.1.1
func (ta *TokenAuth) GetHandlerFunc(tokens []string) gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.