router

package
v5.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Board added in v5.8.0

func Board(id int64) *models.Board

func BusiGroup

func BusiGroup(id int64) *models.BusiGroup

func Cluster

func Cluster(c *gin.Context) string

func Dashboard

func Dashboard(id int64) *models.Dashboard

func MustGetCluster

func MustGetCluster(c *gin.Context) string

func New

func New(version string) *gin.Engine

func TaskCreate

func TaskCreate(v interface{}) (int64, error)

return task.id, error

func TaskDoneIds

func TaskDoneIds(ids []int64) ([]int64, error)

func User

func User(id int64) *models.User

func UserGroup

func UserGroup(id int64) *models.UserGroup

Types

type AccessDetails

type AccessDetails struct {
	AccessUuid   string
	UserIdentity string
}

type AlertCard added in v5.5.0

type AlertCard struct {
	Title    string  `json:"title"`
	Total    int     `json:"total"`
	EventIds []int64 `json:"event_ids"`
	Severity int     `json:"severity"`
}

type CallbackOutput added in v5.5.0

type CallbackOutput struct {
	Redirect     string       `json:"redirect"`
	User         *models.User `json:"user"`
	AccessToken  string       `json:"access_token"`
	RefreshToken string       `json:"refresh_token"`
}

type ChartGroupPure

type ChartGroupPure struct {
	Name   string      `json:"name"`
	Weight int         `json:"weight"`
	Charts []ChartPure `json:"charts"`
}

type ChartPure

type ChartPure struct {
	Configs string `json:"configs"`
	Weight  int    `json:"weight"`
}

type DashboardPure

type DashboardPure struct {
	Name        string           `json:"name"`
	Tags        string           `json:"tags"`
	Configs     string           `json:"configs"`
	ChartGroups []ChartGroupPure `json:"chart_groups"`
}

type DoneIdsReply

type DoneIdsReply struct {
	Err string `json:"err"`
	Dat struct {
		List []int64 `json:"list"`
	} `json:"dat"`
}

type RedirectOutput added in v5.14.1

type RedirectOutput struct {
	Redirect string `json:"redirect"`
	State    string `json:"state"`
}

type SsoConfigOutput added in v5.14.1

type SsoConfigOutput struct {
	OidcDisplayName  string `json:"oidcDisplayName"`
	CasDisplayName   string `json:"casDisplayName"`
	OauthDisplayName string `json:"oauthDisplayName"`
}

type TaskCreateReply

type TaskCreateReply struct {
	Err string `json:"err"`
	Dat int64  `json:"dat"` // task.id
}

type TokenDetails

type TokenDetails struct {
	AccessToken  string
	RefreshToken string
	AccessUuid   string
	RefreshUuid  string
	AtExpires    int64
	RtExpires    int64
}

Jump to

Keyboard shortcuts

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