Documentation
¶
Index ¶
- Constants
- func BusiGroup(ctx *ctx.Context, id int64) *models.BusiGroup
- func Dangerous(c *gin.Context, v interface{}, code ...int)
- func Dashboard(ctx *ctx.Context, id int64) *models.Dashboard
- func DatasourceUrlIsAvail(ds models.Datasource) bool
- 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 ChartGroupPure
- type ChartPure
- type DashboardPure
- type DoneIdsReply
- type InstantFormItem
- type Payload
- type RedirectOutput
- type Router
- type SsoConfigOutput
- type TargetQuery
- type TaskCreateReply
- type TokenDetails
Constants ¶
View Source
const DefaultIbex = `
Address = "http://127.0.0.1:10090"
BasicAuthUser = "ibex"
BasicAuthPass = "ibex"
Timeout = 3000
`
View Source
const DefaultSMTP = `
Host = ""
Port = 994
User = "username"
Pass = "password"
From = "username@163.com"
InsecureSkipVerify = true
Batch = 5
`
Variables ¶
This section is empty.
Functions ¶
func DatasourceUrlIsAvail ¶
func DatasourceUrlIsAvail(ds models.Datasource) bool
func TaskCreate ¶
return task.id, error
Types ¶
type AccessDetails ¶
type CallbackOutput ¶
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 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 Sso *sso.SsoClient Ctx *ctx.Context }
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_chart_share.go
- router_config.go
- router_configs.go
- router_crypto.go
- router_dashboard.go
- router_datasource.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.