router

package
v6.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dangerous

func Dangerous(c *gin.Context, v interface{}, code ...int)

func Render

func Render(c *gin.Context, data, msg interface{})

Types

type Router

type Router struct {
	HTTP               httpx.Config
	Alert              aconf.Alert
	AlertMuteCache     *memsto.AlertMuteCacheType
	TargetCache        *memsto.TargetCacheType
	BusiGroupCache     *memsto.BusiGroupCacheType
	AlertStats         *astats.Stats
	Ctx                *ctx.Context
	ExternalProcessors *process.ExternalProcessorsType
}

func New

func New(httpConfig httpx.Config, alert aconf.Alert, amc *memsto.AlertMuteCacheType, tc *memsto.TargetCacheType, bgc *memsto.BusiGroupCacheType,
	astats *astats.Stats, ctx *ctx.Context, externalProcessors *process.ExternalProcessorsType) *Router

func (*Router) Config

func (rt *Router) Config(r *gin.Engine)

Jump to

Keyboard shortcuts

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