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 PromBatchQueryInstant(pc *prom.PromClientMap, f BatchInstantForm) ([]model.Value, error)
- func PromBatchQueryRange(pc *prom.PromClientMap, f BatchQueryForm) ([]model.Value, error)
- func Render(c *gin.Context, data, msg interface{})
- func SmtpValidate(text string) (aconf.SMTPConfig, error)
- 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 BatchInstantForm
- type BatchQueryForm
- type BoardCate
- type CallbackOutput
- type CaptchaRedisStore
- type CaptchaReqBody
- type ChartGroupPure
- type ChartPure
- type DashboardPure
- type DoneIdsReply
- type InstantFormItem
- type Payload
- type QueryFormItem
- 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 PromBatchQueryInstant ¶ added in v6.6.0
func PromBatchQueryInstant(pc *prom.PromClientMap, f BatchInstantForm) ([]model.Value, error)
func PromBatchQueryRange ¶ added in v6.6.0
func PromBatchQueryRange(pc *prom.PromClientMap, f BatchQueryForm) ([]model.Value, error)
func SmtpValidate ¶ added in v6.4.0
func SmtpValidate(text string) (aconf.SMTPConfig, error)
func TaskCreate ¶
return task.id, error
Types ¶
type AccessDetails ¶
type BatchInstantForm ¶ added in v6.6.0
type BatchInstantForm struct { DatasourceId int64 `json:"datasource_id" binding:"required"` Queries []InstantFormItem `json:"queries" binding:"required"` }
type BatchQueryForm ¶ added in v6.6.0
type BatchQueryForm struct { DatasourceId int64 `json:"datasource_id" binding:"required"` Queries []QueryFormItem `json:"queries" binding:"required"` }
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 QueryFormItem ¶ added in v6.6.0
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 TdendgineClients *tdengine.TdengineClientMap Redis storage.Redis MetaSet *metas.Set IdentSet *idents.Set TargetCache *memsto.TargetCacheType Sso *sso.SsoClient UserCache *memsto.UserCacheType UserGroupCache *memsto.UserGroupCacheType Ctx *ctx.Context }
func New ¶
func New(httpConfig httpx.Config, center cconf.Center, operations cconf.Operation, ds *memsto.DatasourceCacheType, ncc *memsto.NotifyConfigCacheType, pc *prom.PromClientMap, tdendgineClients *tdengine.TdengineClientMap, 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
func (*Router) QuerySqlTemplate ¶ added in v6.2.0
query sql template
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_tdengine.go
- router_user.go
- router_user_group.go
- router_user_variable_config.go
Click to show internal directories.
Click to hide internal directories.