datasource

package
v1.1.30 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricService

type MetricService struct {
	datasourceapi.UnimplementedMetricServer
	// contains filtered or unexported fields
}

MetricService 指标服务

func NewMetricService

func NewMetricService(metricBiz *biz.MetricBiz) *MetricService

NewMetricService 创建指标服务

func (*MetricService) DeleteMetric

DeleteMetric 删除指标

func (*MetricService) GetMetric

GetMetric 获取指标

func (*MetricService) ListMetric

ListMetric 获取指标列表

func (*MetricService) SelectMetric

SelectMetric 获取指标下拉列表

func (*MetricService) SyncMetric

SyncMetric 同步指标

func (*MetricService) UpdateMetric

UpdateMetric 更新指标

type Service

type Service struct {
	datasourceapi.UnimplementedDatasourceServer
	// contains filtered or unexported fields
}

Service 数据源服务

func NewDatasourceService

func NewDatasourceService(datasourceBiz *biz.DatasourceBiz) *Service

NewDatasourceService 创建数据源服务

func (*Service) CreateDatasource

CreateDatasource 创建数据源

func (*Service) DatasourceQuery

DatasourceQuery 查询数据

func (*Service) DeleteDatasource

DeleteDatasource 删除数据源

func (*Service) GetDatasource

GetDatasource 获取数据源详情

func (*Service) GetDatasourceSelect

GetDatasourceSelect 获取数据源下拉列表

func (*Service) ListDatasource

ListDatasource 获取数据源列表

func (*Service) MetricProxy added in v1.1.9

func (s *Service) MetricProxy() http.HandlerFunc

func (*Service) ProxyQuery

func (s *Service) ProxyQuery(ctx http.Context) error

ProxyQuery 查询数据

func (*Service) SyncDatasourceMeta

SyncDatasourceMeta 同步数据源元数据

func (*Service) UpdateDatasource

UpdateDatasource 更新数据源

func (*Service) UpdateDatasourceStatus

UpdateDatasourceStatus 更新数据源状态

Jump to

Keyboard shortcuts

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