Documentation ¶
Index ¶
- func BusiGroup(ctx *ctx.Context, id int64) *models.BusiGroup
- func CaptchaVerify(id string, value string) bool
- func Dangerous(c *gin.Context, v interface{}, code ...int)
- func Dashboard(ctx *ctx.Context, id int64) *models.Dashboard
- func DatasourceCheck(ds models.Datasource) error
- func Render(c *gin.Context, data, msg interface{})
- func TaskCreate(v interface{}, ibexc aconf.Ibex) (int64, error)
- func User(ctx *ctx.Context, id int64) *models.User
- func UserGroup(ctx *ctx.Context, id int64) *models.UserGroup
- func Username(c *gin.Context) string
- type AccessDetails
- type AlertCard
- type AlertCate
- type BoardCate
- type CallbackOutput
- type CaptchaRedisStore
- type CaptchaReqBody
- type ChartGroupPure
- type ChartPure
- type DashboardPure
- type DoneIdsReply
- type InstantFormItem
- type Payload
- type RSAConfigOutput
- type RedirectOutput
- type Router
- type SsoConfigOutput
- type TargetQuery
- type TaskCreateReply
- type TokenDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatasourceCheck ¶
func DatasourceCheck(ds models.Datasource) error
func TaskCreate ¶
用于创建任务, return task.id, error
Types ¶
type AccessDetails ¶
type CallbackOutput ¶
type CaptchaRedisStore ¶
type CaptchaRedisStore struct {
// contains filtered or unexported fields
}
type CaptchaReqBody ¶
type ChartGroupPure ¶
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 InstantFormItem ¶
type RSAConfigOutput ¶
type RedirectOutput ¶
type Router ¶
type Router struct { HTTP httpx.Config Center cconf.Center Operations cconf.Operation DatasourceCache *memsto.DatasourceCacheType NotifyConfigCache *memsto.NotifyConfigCacheType PromClients *prom.PromClientMap Redis storage.Redis MetaSet *metas.Set IdentSet *idents.Set TargetCache *memsto.TargetCacheType Sso *sso.SsoClient UserCache *memsto.UserCacheType UserGroupCache *memsto.UserGroupCacheType Ctx *ctx.Context DatasourceCheckHook func(*gin.Context) bool }
func New ¶
func New(httpConfig httpx.Config, center cconf.Center, operations cconf.Operation, ds *memsto.DatasourceCacheType, ncc *memsto.NotifyConfigCacheType, pc *prom.PromClientMap, redis storage.Redis, sso *sso.SsoClient, ctx *ctx.Context, metaSet *metas.Set, idents *idents.Set, tc *memsto.TargetCacheType, uc *memsto.UserCacheType, ugc *memsto.UserGroupCacheType) *Router
type SsoConfigOutput ¶
type TargetQuery ¶
type TaskCreateReply ¶
Source Files ¶
- router.go
- router_alert_aggr_view.go
- router_alert_cur_event.go
- router_alert_his_event.go
- router_alert_rule.go
- router_alert_subscribe.go
- router_board.go
- router_builtin.go
- router_busi_group.go
- router_captcha.go
- router_chart_share.go
- router_config.go
- router_configs.go
- router_crypto.go
- router_dashboard.go
- router_datasource.go
- router_es_index_pattern.go
- router_funcs.go
- router_heartbeat.go
- router_login.go
- router_metric_desc.go
- router_metric_view.go
- router_mute.go
- router_mw.go
- router_notify_config.go
- router_notify_tpl.go
- router_proxy.go
- router_recording_rule.go
- router_role.go
- router_role_operation.go
- router_self.go
- router_server.go
- router_target.go
- router_task.go
- router_task_tpl.go
- router_user.go
- router_user_group.go
Click to show internal directories.
Click to hide internal directories.