routes

package
v0.0.0-...-b6b44b4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegExpExcludePatition string = "```EXCLUDE```"

Functions

func Config

func Config(r *gin.Engine)

Config routes

func GetPatAndTimeFormat

func GetPatAndTimeFormat(tf string) (string, string)

根据配置的时间格式,获取对应的正则匹配pattern和time包用的时间格式

Types

type AlertUpgrade

type AlertUpgrade struct {
	Users    []string `json:"users"`
	Groups   []string `json:"groups"`
	Duration int      `json:"duration"`
	Level    int      `json:"level"`
}

type ChartPutForm

type ChartPutForm struct {
	SubclassId int64  `json:"subclass_id"`
	Configs    string `json:"configs"`
}

type ChartWeight

type ChartWeight struct {
	Id     int64 `json:"id"`
	Weight int   `json:"weight"`
}

type CollectRecv

type CollectRecv struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

type CollectsDelRev

type CollectsDelRev struct {
	Type string  `json:"type"`
	Ids  []int64 `json:"ids"`
}

type MaskconfForm

type MaskconfForm struct {
	Nid       int64    `json:"nid"`
	Endpoints []string `json:"endpoints"`
	Metric    string   `json:"metric"`
	Tags      string   `json:"tags"`
	Cause     string   `json:"cause"`
	Btime     int64    `json:"btime"`
	Etime     int64    `json:"etime"`
}

func (MaskconfForm) Validate

func (f MaskconfForm) Validate()

type RegExpCheckDto

type RegExpCheckDto struct {
	Success bool                `json:"success"`
	Data    []map[string]string `json:"tags"`
}

type ScreenForm

type ScreenForm struct {
	Name string `json:"name"`
}

type ScreenPutForm

type ScreenPutForm struct {
	Name   string `json:"name"`
	NodeId int64  `json:"node_id"`
}

type ScreenSubclassForm

type ScreenSubclassForm struct {
	Name   string `json:"name"`
	Weight int    `json:"weight"`
}

type StrasDelRev

type StrasDelRev struct {
	Ids []int64 `json:"ids"`
}

Jump to

Keyboard shortcuts

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