Documentation
¶
Index ¶
- type Client
- func (c *Client) AdminRoleCheck(ctx context.Context, projectId, token string, result interface{}) error
- func (c *Client) AlgorithmRunById(ctx context.Context, projectId, id string, data interface{}) ([]byte, error)
- func (c *Client) BatchCommand(ctx context.Context, projectId string, data interface{}, result interface{}) error
- func (c *Client) BatchCreateFlow(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) BatchCreateFlowTask(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) BatchCreateReport(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) BatchCreateReportCopy(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) BatchCreateRule(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) BatchCreateWarn(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CallAIModel(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CallBigModel(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) ChangeCommand(ctx context.Context, projectId, id string, data, result interface{}) error
- func (c *Client) CreateApiPermission(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateDashboard(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateDataGroups(ctx context.Context, projectId string, createData, result interface{}) (int64, error)
- func (c *Client) CreateDataInterfaces(ctx context.Context, projectId string, createData, result interface{}) (int64, error)
- func (c *Client) CreateDataRelayService(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateDatasetView(ctx context.Context, projectId string, datasetView, result interface{}) error
- func (c *Client) CreateDatasetWhole(ctx context.Context, projectId string, datasetWhole, result interface{}) error
- func (c *Client) CreateDriverEventCron(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateDriverInstance(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateDriverInstructCron(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateFlowJobCron(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateFlowLogCron(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateFlowTask(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateFlowTriggerRecord(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateLocalAlgorithm(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateLog(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateManyDriverEventCron(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateManyDriverInstructCron(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateManyFlowJobCron(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateManyFlowLogCron(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateManyLocalAlgorithm(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateManyTableData(ctx context.Context, projectId, tableName string, closeRequire bool, ...) error
- func (c *Client) CreateManyTableDataByDB(ctx context.Context, projectId, tableName string, ...) error
- func (c *Client) CreateManyUserBackup(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateMediaLibraryDirSetting(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateMessage(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateProject(ctx context.Context, createData, result interface{}) error
- func (c *Client) CreateReport(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateSync(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateSystemVariable(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateTableData(ctx context.Context, projectId, tableName string, closeRequire bool, ...) error
- func (c *Client) CreateTableDataByDB(ctx context.Context, projectId, tableName string, ...) error
- func (c *Client) CreateTableRecord(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateTableSchema(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateTaskManager(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateUser(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) CreateWarn(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) DataInterfaceProxy(ctx context.Context, projectId, key string, data map[string]interface{}) (*ProxyResult, error)
- func (c *Client) DatasetPreview(ctx context.Context, projectId, mode, datesetId string, data any, ...) ([]byte, error)
- func (c *Client) DatasetViewPreview(ctx context.Context, projectId, mode, datesetId, viewId string, ...) ([]byte, error)
- func (c *Client) DeleteAllDatasetViews(ctx context.Context, projectId string) (int64, error)
- func (c *Client) DeleteAllDatasets(ctx context.Context, projectId string) (int64, error)
- func (c *Client) DeleteBackup(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteDataGroup(ctx context.Context, projectId, id string) error
- func (c *Client) DeleteDataInterface(ctx context.Context, projectId, id string) error
- func (c *Client) DeleteDataRelayService(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteDriverEventCron(ctx context.Context, projectId, id string) error
- func (c *Client) DeleteDriverInstance(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteDriverInstructCron(ctx context.Context, projectId, id string) error
- func (c *Client) DeleteFlow(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteFlowJobCron(ctx context.Context, projectId, id string) error
- func (c *Client) DeleteFlowLogCron(ctx context.Context, projectId, id string) error
- func (c *Client) DeleteFlowTask(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteLocalAlgorithm(ctx context.Context, projectId, id string) error
- func (c *Client) DeleteManyDataGroups(ctx context.Context, projectId string, filter interface{}) (int64, error)
- func (c *Client) DeleteManyDataInterfaces(ctx context.Context, projectId string, filter interface{}) (int64, error)
- func (c *Client) DeleteManyDriverEventCron(ctx context.Context, projectId string, query interface{}) (int64, error)
- func (c *Client) DeleteManyDriverInstructCron(ctx context.Context, projectId string, query interface{}) (int64, error)
- func (c *Client) DeleteManyFlowJobCron(ctx context.Context, projectId string, query interface{}) (int64, error)
- func (c *Client) DeleteManyFlowLogCron(ctx context.Context, projectId string, query interface{}) (int64, error)
- func (c *Client) DeleteManyLocalAlgorithm(ctx context.Context, projectId string, query interface{}) (int64, error)
- func (c *Client) DeleteManyTableData(ctx context.Context, projectId, tableName string, query, result interface{}) error
- func (c *Client) DeleteManyTableDataByDB(ctx context.Context, projectId, tableName string, query, result interface{}) error
- func (c *Client) DeleteManyUserBackup(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) DeleteMediaLibraryDirSetting(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteProject(ctx context.Context, id string, result interface{}) error
- func (c *Client) DeleteReport(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteReportCopy(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteRule(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteSync(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteSystemVariable(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteTableData(ctx context.Context, projectId, tableName, id string, result interface{}) error
- func (c *Client) DeleteTableDataByDB(ctx context.Context, projectId, tableName, id string, result interface{}) error
- func (c *Client) DeleteTableRecord(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteTableSchema(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteTaskManager(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DeleteUser(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) DownloadBackup(ctx context.Context, projectId, id, password string, w io.Writer) error
- func (c *Client) DownloadFile(ctx context.Context, projectId string, path string, saveFile string) error
- func (c *Client) DownloadFileData(ctx context.Context, projectId string, path string) ([]byte, error)
- func (c *Client) DriverBatchWriteTag(ctx context.Context, projectId string, data *DriverBatchWriteTag, ...) error
- func (c *Client) DriverWriteTag(ctx context.Context, projectId string, data *DriverWriteTag, ...) error
- func (c *Client) ExportBackup(ctx context.Context, projectId string, query interface{}) (string, error)
- func (c *Client) Fail(ctx context.Context, projectId, jobId, elementId, errMessage string) error
- func (c *Client) FindDevice(ctx context.Context, projectId, driverId, groupId, tableId, deviceId string, ...) error
- func (c *Client) FindMachineCode(ctx context.Context, result interface{}) error
- func (c *Client) FindTableCommandById(ctx context.Context, projectId, id string, result interface{}) error
- func (c *Client) FindTableDataCommandById(ctx context.Context, projectId, tableId, id string, result interface{}) error
- func (c *Client) FindTableDataDeptByDeptIDs(ctx context.Context, projectId string, ids map[string]interface{}, ...) error
- func (c *Client) FindTagByID(ctx context.Context, projectId, tableId, id string, result interface{}) ([]byte, error)
- func (c *Client) FormulaDefaultSearch(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) GetAPIKey(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetAPIKeyByKeyID(ctx context.Context, projectId, keyID string, result interface{}) ([]byte, error)
- func (c *Client) GetApp(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetBackup(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetCatalog(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetCurrentUserInfo(ctx context.Context, projectId, token string, result interface{}) error
- func (c *Client) GetDataRelayService(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetDept(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetDriverEventCron(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetDriverInstance(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetDriverInstructCron(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetDriverLicense(ctx context.Context, projectId, driverId string, result interface{}) error
- func (c *Client) GetFileLicense(ctx context.Context, result interface{}) error
- func (c *Client) GetFlow(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetFlowJobCron(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetFlowLogCron(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetFlowTask(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetLocalAlgorithm(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetLog(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetMediaLibraryDirSetting(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetMediaLibraryDirSettingByPath(ctx context.Context, projectId, path string, result interface{}) ([]byte, error)
- func (c *Client) GetProject(ctx context.Context, id string, result interface{}) ([]byte, error)
- func (c *Client) GetQuery(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) GetReport(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetRole(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetSync(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetSystemVariable(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetTableData(ctx context.Context, projectId, tableName, id string, result interface{}) ([]byte, error)
- func (c *Client) GetTableDataByDB(ctx context.Context, projectId, tableName, id string, result interface{}) ([]byte, error)
- func (c *Client) GetTableRecord(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetTableSchema(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetTaskManager(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetToken() (string, error)
- func (c *Client) GetUser(ctx context.Context, projectId, id string, result interface{}) ([]byte, error)
- func (c *Client) GetWarn(ctx context.Context, projectId, archive, id string, result interface{}) ([]byte, error)
- func (c *Client) GetWarningFilterIDs(ctx context.Context, projectId, token string, result interface{}) error
- func (c *Client) HttpProxy(ctx context.Context, projectId, typeId, groupId string, ...) error
- func (c *Client) ImportBackup(ctx context.Context, projectId string, query interface{}) (string, error)
- func (c *Client) LivePull2Ws(ctx context.Context, projectId string, createData interface{}) (string, error)
- func (c *Client) LiveStreamStopByStreamPath(ctx context.Context, projectId, streamPath string) error
- func (c *Client) LiveStreamsInfo(ctx context.Context, projectId string, result interface{}) error
- func (c *Client) MediaLibraryMkdir(ctx context.Context, projectId string, catalog, dirName string) error
- func (c *Client) PostLatest(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) PostQuery(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) QueryAPIKey(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryApiPermissionLog(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QueryApp(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryBackup(ctx context.Context, projectId string, query, result interface{}, count *int64) error
- func (c *Client) QueryCatalog(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryDashboard(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QueryDataGroup(ctx context.Context, projectId string, query, result interface{}) (int64, error)
- func (c *Client) QueryDataInterface(ctx context.Context, projectId string, query, result interface{}) (int64, error)
- func (c *Client) QueryDataRelayService(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryDataset(ctx context.Context, projectId string, query, result interface{}) (int64, error)
- func (c *Client) QueryDatasetView(ctx context.Context, projectId string, query, result interface{}) (int64, error)
- func (c *Client) QueryDatasetWhole(ctx context.Context, projectId string, query, result interface{}) (int64, error)
- func (c *Client) QueryDept(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryDriverEventCron(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryDriverInstance(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryDriverInstructCron(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryEmulator(ctx context.Context, projectId string, result interface{}) error
- func (c *Client) QueryFlow(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QueryFlowJobCron(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryFlowLogCron(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryFlowTask(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QueryLocalAlgorithm(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryLog(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QueryMediaLibrary(ctx context.Context, projectId string, catalog string, isFile, addBase64 bool, ...) (int, error)
- func (c *Client) QueryMediaLibraryDirSetting(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QueryMessage(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QueryOnlyTableSchemaDeviceByDriverAndGroup(ctx context.Context, projectId, driverId, groupId string, result interface{}) error
- func (c *Client) QueryPmSetting(ctx context.Context, query, result interface{}) error
- func (c *Client) QueryProject(ctx context.Context, query, result interface{}) error
- func (c *Client) QueryProjectAvailable(ctx context.Context, result interface{}) error
- func (c *Client) QueryReport(ctx context.Context, projectId string, query interface{}, result interface{}) (int, error)
- func (c *Client) QueryReportCopy(ctx context.Context, projectId string, query interface{}, result interface{}) (int, error)
- func (c *Client) QueryRole(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryRule(ctx context.Context, projectId string, query interface{}, result interface{}) (int, error)
- func (c *Client) QuerySetting(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QuerySync(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QuerySyslog(ctx context.Context, projectId string, query, result interface{}) (int, error)
- func (c *Client) QuerySystemVariable(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryTableData(ctx context.Context, projectId, tableName string, query, result interface{}) (int64, error)
- func (c *Client) QueryTableDataByDB(ctx context.Context, projectId, tableName string, query, result interface{}) (int64, error)
- func (c *Client) QueryTableDataByTableId(ctx context.Context, projectId, tableId string, query, result interface{}) error
- func (c *Client) QueryTableRecord(ctx context.Context, projectId string, query, result interface{}) (int64, error)
- func (c *Client) QueryTableSchema(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryTableSchemaDeviceByDriverAndGroup(ctx context.Context, projectId, driverId, groupId string, result interface{}) error
- func (c *Client) QueryTaskManager(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryUser(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryUserBackup(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) QueryWarn(ctx context.Context, projectId, token, archive string, query interface{}, ...) (int, error)
- func (c *Client) ReplaceDataGroup(ctx context.Context, projectId, id string, createData interface{}) error
- func (c *Client) ReplaceDataInterface(ctx context.Context, projectId, id string, createData interface{}) error
- func (c *Client) ReplaceDataRelayService(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceDatasetView(ctx context.Context, projectId, id string, datasetView interface{}) error
- func (c *Client) ReplaceDatasetWhole(ctx context.Context, projectId, id string, datasetWhole interface{}) error
- func (c *Client) ReplaceDriverEventCron(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) ReplaceDriverInstance(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceDriverInstructCron(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) ReplaceFlow(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceFlowJobCron(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) ReplaceFlowTask(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceLocalAlgorithm(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) ReplaceMediaLibraryDirSetting(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceProject(ctx context.Context, id string, updateData, result interface{}) error
- func (c *Client) ReplaceReport(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceReportCopy(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceRule(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceSync(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceSystemVariable(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceTableData(ctx context.Context, projectId, tableName, id string, closeRequire bool, ...) error
- func (c *Client) ReplaceTableDataByDB(ctx context.Context, projectId, tableName, id string, ...) error
- func (c *Client) ReplaceTableRecord(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceTableSchema(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceTaskManager(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) ReplaceUser(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) RestQueryProject(ctx context.Context, query, result interface{}) error
- func (c *Client) RestQueryTableSchema(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) Resume(ctx context.Context, projectId, jobId, elementId string, ...) error
- func (c *Client) Revert(ctx context.Context, projectId, jobId, elementId string, ...) error
- func (c *Client) RevertCreateFlowTask(ctx context.Context, projectId string, createData, result interface{}) error
- func (c *Client) RtspPull(ctx context.Context, projectId string, createData interface{}) (string, error)
- func (c *Client) Run(ctx context.Context, projectId, flowConfig string, elementB []byte, ...) (result *engine.RunResponse, err error)
- func (c *Client) RunJsScript(ctx context.Context, variables interface{}, script string) ([]byte, error)
- func (c *Client) StatsQuery(ctx context.Context, projectId string, query, result interface{}) error
- func (c *Client) UpdateBackup(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateDataGroup(ctx context.Context, projectId, id string, createData interface{}) error
- func (c *Client) UpdateDataInterface(ctx context.Context, projectId, id string, createData interface{}) error
- func (c *Client) UpdateDataRelayService(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateDriverEventCron(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) UpdateDriverInstance(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateDriverInstructCron(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) UpdateFlow(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateFlowJobCron(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) UpdateFlowLogCron(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) UpdateFlowTask(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateFlowTaskFilter(ctx context.Context, projectId string, query, updateData interface{}) error
- func (c *Client) UpdateLocalAlgorithm(ctx context.Context, projectId, id string, updateData interface{}) error
- func (c *Client) UpdateManyTableData(ctx context.Context, projectId, tableName string, closeRequire bool, ...) error
- func (c *Client) UpdateManyTableDataByDB(ctx context.Context, projectId, tableName string, ...) error
- func (c *Client) UpdateMediaLibraryDirSetting(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateProject(ctx context.Context, id string, updateData, result interface{}) error
- func (c *Client) UpdateProjectLicense(ctx context.Context, id string, updateData, _ interface{}) error
- func (c *Client) UpdateReport(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateReportCopy(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateRule(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateSync(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateSystemVariable(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateTableData(ctx context.Context, projectId, tableName, id string, closeRequire bool, ...) error
- func (c *Client) UpdateTableDataByDB(ctx context.Context, projectId, tableName, id string, ...) error
- func (c *Client) UpdateTableRecord(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateTableSchema(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateTaskManager(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UpdateUser(ctx context.Context, projectId, id string, updateData, result interface{}) error
- func (c *Client) UploadBackup(ctx context.Context, projectId, password string, size int, r io.Reader) error
- func (c *Client) UploadFile(ctx context.Context, projectId string, ...) (string, error)
- func (c *Client) UploadFileData(ctx context.Context, projectId string, ...) (string, error)
- func (c *Client) UploadFileFromBase64(ctx context.Context, projectId string, ...) (string, float64, error)
- func (c *Client) UploadFileFromUrl(ctx context.Context, projectId string, sourceUrl string, catalog string, ...) (string, string, float64, error)
- func (c *Client) UploadLicense(ctx context.Context, projectId, filename string, size int, r io.Reader) error
- func (c *Client) UseLicense(ctx context.Context, projectId string, result interface{}) error
- func (c *Client) UserPermissionUpdate(ctx context.Context, projectId, token string, createData, result interface{}) error
- type ConditionField
- type DriverBatchWriteTag
- type DriverWriteTag
- type Handler
- type KratosRegistryClient
- func (reg *KratosRegistryClient) GetServiceEndpoints(serviceInstances []*registry.ServiceInstance, schemes ...string) []string
- func (reg *KratosRegistryClient) GetServiceEndpointsByServiceName(ctx context.Context, serviceName string, allowEmptyEnv bool, envs []string, ...) ([]string, error)
- func (reg *KratosRegistryClient) GetServiceInstances(ctx context.Context, serviceName string, allowEmptyEnv bool, envs ...string) ([]*registry.ServiceInstance, error)
- func (reg *KratosRegistryClient) Watch(ctx context.Context, serviceName string, options ...WatchOption) (*KratosRegistryWatchClient, error)
- type KratosRegistryWatchClient
- type MediaFile
- type MultipartReader
- type OrderByField
- type Params
- type ProxyResult
- type QueryParam
- type SelectField
- type SelectFieldOption
- type Service
- type TaskMode
- type WatchOption
- type WatchOptionFn
- type WhereConditions
- type WhereFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Config config.Config
RegistryClient *KratosRegistryClient
AuthClient *auth.Client
SpmClient *spm.Client
CoreClient *core.Client
FlowClient *flow.Client
WarningClient *warning.Client
DriverClient *driver.Client
DataServiceClient *dataservice.Client
FlowEngineClient *engine.Client
ReportClient *report.Client
LiveClient *live.Client
AlgorithmClient *algorithm.Client
DataRelayClient *datarelay.Client
JsServerClient *jsserver.Client
SyncClient *sync.Client
SyslogClient *syslog.Client
ComputeRecordClient *computerecord.Client
AIClient *ai.Client
RecordClient *record.Client
Service *Service
}
func NewLocalClient ¶
func (*Client) AdminRoleCheck ¶
func (*Client) AlgorithmRunById ¶
func (c *Client) AlgorithmRunById(ctx context.Context, projectId, id string, data interface{}) ([]byte, error)
AlgorithmRunById 算法执行
func (*Client) BatchCommand ¶
func (c *Client) BatchCommand(ctx context.Context, projectId string, data interface{}, result interface{}) error
BatchCommand 批量执行指令
func (*Client) BatchCreateFlow ¶
func (*Client) BatchCreateFlowTask ¶
func (c *Client) BatchCreateFlowTask(ctx context.Context, projectId string, createData, result interface{}) error
BatchCreateFlowTask FlowTask
func (*Client) BatchCreateReport ¶
func (*Client) BatchCreateReportCopy ¶
func (*Client) BatchCreateRule ¶
func (*Client) BatchCreateWarn ¶
func (*Client) CallAIModel ¶
func (*Client) CallBigModel ¶
func (*Client) ChangeCommand ¶
func (c *Client) ChangeCommand(ctx context.Context, projectId, id string, data, result interface{}) error
ChangeCommand 执行指令
func (*Client) CreateApiPermission ¶
func (*Client) CreateDashboard ¶
func (*Client) CreateDataGroups ¶
func (*Client) CreateDataInterfaces ¶
func (*Client) CreateDataRelayService ¶
func (*Client) CreateDatasetView ¶
func (*Client) CreateDatasetWhole ¶
func (*Client) CreateDriverEventCron ¶
func (*Client) CreateDriverInstance ¶
func (*Client) CreateDriverInstructCron ¶
func (*Client) CreateFlowJobCron ¶
func (*Client) CreateFlowLogCron ¶
func (*Client) CreateFlowTask ¶
func (c *Client) CreateFlowTask(ctx context.Context, projectId string, createData, result interface{}) error
CreateFlowTask FlowTask
func (*Client) CreateFlowTriggerRecord ¶
func (c *Client) CreateFlowTriggerRecord(ctx context.Context, projectId string, createData, result interface{}) error
CreateFlowTriggerRecord FlowTriggerRecord
func (*Client) CreateLocalAlgorithm ¶
func (*Client) CreateManyDriverEventCron ¶
func (*Client) CreateManyDriverInstructCron ¶
func (*Client) CreateManyFlowJobCron ¶
func (*Client) CreateManyFlowLogCron ¶
func (*Client) CreateManyLocalAlgorithm ¶
func (*Client) CreateManyTableData ¶
func (*Client) CreateManyTableDataByDB ¶
func (*Client) CreateManyUserBackup ¶
func (*Client) CreateMediaLibraryDirSetting ¶
func (c *Client) CreateMediaLibraryDirSetting(ctx context.Context, projectId string, createData, result interface{}) error
CreateMediaLibraryDirSetting 媒体库文件夹设置
func (*Client) CreateMessage ¶
func (*Client) CreateProject ¶
func (*Client) CreateReport ¶
func (*Client) CreateSync ¶
func (*Client) CreateSystemVariable ¶
func (*Client) CreateTableData ¶
func (*Client) CreateTableDataByDB ¶
func (*Client) CreateTableRecord ¶
func (*Client) CreateTableSchema ¶
func (*Client) CreateTaskManager ¶
func (*Client) CreateUser ¶
func (*Client) CreateWarn ¶
func (*Client) DataInterfaceProxy ¶
func (*Client) DatasetPreview ¶
func (c *Client) DatasetPreview(ctx context.Context, projectId, mode, datesetId string, data any, result interface{}) ([]byte, error)
data是数据集配置
func (*Client) DatasetViewPreview ¶
func (*Client) DeleteAllDatasetViews ¶
删除全部数据集视图(仅备份还原使用),有特殊认证
func (*Client) DeleteAllDatasets ¶
删除全部数据集(仅备份还原使用),有特殊认证
func (*Client) DeleteBackup ¶
func (*Client) DeleteDataGroup ¶
func (*Client) DeleteDataInterface ¶
func (*Client) DeleteDataRelayService ¶
func (*Client) DeleteDriverEventCron ¶
func (*Client) DeleteDriverInstance ¶
func (*Client) DeleteDriverInstructCron ¶
func (*Client) DeleteFlow ¶
func (*Client) DeleteFlowJobCron ¶
func (*Client) DeleteFlowLogCron ¶
func (*Client) DeleteFlowTask ¶
func (*Client) DeleteLocalAlgorithm ¶
func (*Client) DeleteManyDataGroups ¶
func (*Client) DeleteManyDataInterfaces ¶
func (*Client) DeleteManyDriverEventCron ¶
func (*Client) DeleteManyDriverInstructCron ¶
func (*Client) DeleteManyFlowJobCron ¶
func (*Client) DeleteManyFlowLogCron ¶
func (*Client) DeleteManyLocalAlgorithm ¶
func (*Client) DeleteManyTableData ¶
func (*Client) DeleteManyTableDataByDB ¶
func (*Client) DeleteManyUserBackup ¶
func (*Client) DeleteMediaLibraryDirSetting ¶
func (*Client) DeleteProject ¶
func (*Client) DeleteReport ¶
func (*Client) DeleteReportCopy ¶
func (*Client) DeleteRule ¶
func (*Client) DeleteSync ¶
func (*Client) DeleteSystemVariable ¶
func (*Client) DeleteTableData ¶
func (*Client) DeleteTableDataByDB ¶
func (*Client) DeleteTableRecord ¶
func (*Client) DeleteTableSchema ¶
func (*Client) DeleteTaskManager ¶
func (*Client) DeleteUser ¶
func (*Client) DownloadBackup ¶
func (*Client) DownloadFile ¶
func (c *Client) DownloadFile(ctx context.Context, projectId string, path string, saveFile string) error
DownloadFile 下载媒体库文件到本地
projectId: 项目ID path: 媒体库文件路径. /core/fileServer/mediaLibrary/projectId/{filePath} 或 {filePath} saveFile: 保存到本地文件的路径
func (*Client) DownloadFileData ¶
func (c *Client) DownloadFileData(ctx context.Context, projectId string, path string) ([]byte, error)
DownloadFileData 下载媒体库文件到本地
projectId: 项目ID path: 媒体库文件路径. /core/fileServer/mediaLibrary/projectId/{filePath} 或 {filePath}
返回值: 文件的字节数组, 错误
func (*Client) DriverBatchWriteTag ¶
func (c *Client) DriverBatchWriteTag(ctx context.Context, projectId string, data *DriverBatchWriteTag, result interface{}) error
DriverBatchWriteTag 执行写数据点
func (*Client) DriverWriteTag ¶
func (c *Client) DriverWriteTag(ctx context.Context, projectId string, data *DriverWriteTag, result interface{}) error
DriverWriteTag 执行写数据点
func (*Client) ExportBackup ¶
func (*Client) FindDevice ¶
func (*Client) FindMachineCode ¶
func (*Client) FindTableCommandById ¶
func (*Client) FindTableDataCommandById ¶
func (*Client) FindTableDataDeptByDeptIDs ¶
func (*Client) FindTagByID ¶
func (*Client) FormulaDefaultSearch ¶
func (*Client) GetAPIKeyByKeyID ¶
func (*Client) GetCatalog ¶
func (*Client) GetCurrentUserInfo ¶
func (*Client) GetDataRelayService ¶
func (*Client) GetDriverEventCron ¶
func (*Client) GetDriverInstance ¶
func (*Client) GetDriverInstructCron ¶
func (*Client) GetDriverLicense ¶
func (*Client) GetFileLicense ¶
func (*Client) GetFlowJobCron ¶
func (*Client) GetFlowLogCron ¶
func (*Client) GetFlowTask ¶
func (*Client) GetLocalAlgorithm ¶
func (*Client) GetMediaLibraryDirSetting ¶
func (*Client) GetMediaLibraryDirSettingByPath ¶
func (*Client) GetProject ¶
func (*Client) GetSystemVariable ¶
func (*Client) GetTableData ¶
func (*Client) GetTableDataByDB ¶
func (*Client) GetTableRecord ¶
func (*Client) GetTableSchema ¶
func (*Client) GetTaskManager ¶
func (*Client) GetWarningFilterIDs ¶
func (*Client) HttpProxy ¶
func (c *Client) HttpProxy(ctx context.Context, projectId, typeId, groupId string, headers, data, result interface{}) error
HttpProxy 驱动代理接口
func (*Client) ImportBackup ¶
func (*Client) LivePull2Ws ¶
func (*Client) LiveStreamStopByStreamPath ¶
func (*Client) LiveStreamsInfo ¶
func (*Client) MediaLibraryMkdir ¶
func (*Client) PostLatest ¶
func (*Client) QueryAPIKey ¶
func (*Client) QueryApiPermissionLog ¶
func (*Client) QueryBackup ¶
func (*Client) QueryCatalog ¶
func (*Client) QueryDashboard ¶
func (*Client) QueryDataGroup ¶
func (*Client) QueryDataInterface ¶
func (*Client) QueryDataRelayService ¶
func (*Client) QueryDataset ¶
func (c *Client) QueryDataset(ctx context.Context, projectId string, query, result interface{}) (int64, error)
查询数据集整体配置(仅数据集本身),支持过滤和分页
func (*Client) QueryDatasetView ¶
func (*Client) QueryDatasetWhole ¶
func (c *Client) QueryDatasetWhole(ctx context.Context, projectId string, query, result interface{}) (int64, error)
查询数据集整体配置(包含数据集本身及其列配置),支持过滤和分页
func (*Client) QueryDriverEventCron ¶
func (*Client) QueryDriverInstance ¶
func (*Client) QueryDriverInstructCron ¶
func (*Client) QueryEmulator ¶
func (*Client) QueryFlow ¶
func (c *Client) QueryFlow(ctx context.Context, projectId string, query, result interface{}) (int, error)
QueryFlow Flow
func (*Client) QueryFlowJobCron ¶
func (*Client) QueryFlowLogCron ¶
func (*Client) QueryFlowTask ¶
func (*Client) QueryLocalAlgorithm ¶
func (*Client) QueryMediaLibrary ¶
func (*Client) QueryMediaLibraryDirSetting ¶
func (*Client) QueryMessage ¶
func (*Client) QueryOnlyTableSchemaDeviceByDriverAndGroup ¶
func (*Client) QueryPmSetting ¶
func (*Client) QueryProject ¶
func (*Client) QueryProjectAvailable ¶
func (*Client) QueryReport ¶
func (c *Client) QueryReport(ctx context.Context, projectId string, query interface{}, result interface{}) (int, error)
QueryReport 查询
func (*Client) QueryReportCopy ¶
func (c *Client) QueryReportCopy(ctx context.Context, projectId string, query interface{}, result interface{}) (int, error)
QueryReportCopy 查询
func (*Client) QueryRule ¶
func (c *Client) QueryRule(ctx context.Context, projectId string, query interface{}, result interface{}) (int, error)
QueryRule 查询
func (*Client) QuerySetting ¶
func (*Client) QuerySync ¶
func (c *Client) QuerySync(ctx context.Context, projectId string, query, result interface{}) (int, error)
QuerySync Sync
func (*Client) QuerySyslog ¶
func (c *Client) QuerySyslog(ctx context.Context, projectId string, query, result interface{}) (int, error)
QuerySyslog Syslog
func (*Client) QuerySystemVariable ¶
func (*Client) QueryTableData ¶
func (*Client) QueryTableDataByDB ¶
func (*Client) QueryTableDataByTableId ¶
func (*Client) QueryTableRecord ¶
func (*Client) QueryTableSchema ¶
func (*Client) QueryTableSchemaDeviceByDriverAndGroup ¶
func (*Client) QueryTaskManager ¶
func (*Client) QueryUserBackup ¶
func (*Client) QueryWarn ¶
func (c *Client) QueryWarn(ctx context.Context, projectId, token, archive string, query interface{}, result interface{}) (int, error)
QueryWarn 查询
func (*Client) ReplaceDataGroup ¶
func (*Client) ReplaceDataInterface ¶
func (*Client) ReplaceDataRelayService ¶
func (*Client) ReplaceDatasetView ¶
func (*Client) ReplaceDatasetWhole ¶
func (*Client) ReplaceDriverEventCron ¶
func (*Client) ReplaceDriverInstance ¶
func (*Client) ReplaceDriverInstructCron ¶
func (*Client) ReplaceFlow ¶
func (*Client) ReplaceFlowJobCron ¶
func (*Client) ReplaceFlowTask ¶
func (*Client) ReplaceLocalAlgorithm ¶
func (*Client) ReplaceMediaLibraryDirSetting ¶
func (*Client) ReplaceProject ¶
func (*Client) ReplaceReport ¶
func (*Client) ReplaceReportCopy ¶
func (*Client) ReplaceRule ¶
func (*Client) ReplaceSync ¶
func (*Client) ReplaceSystemVariable ¶
func (*Client) ReplaceTableData ¶
func (*Client) ReplaceTableDataByDB ¶
func (*Client) ReplaceTableRecord ¶
func (*Client) ReplaceTableSchema ¶
func (*Client) ReplaceTaskManager ¶
func (*Client) ReplaceUser ¶
func (*Client) RestQueryProject ¶
func (*Client) RestQueryTableSchema ¶
func (*Client) RevertCreateFlowTask ¶
func (*Client) RunJsScript ¶
func (*Client) StatsQuery ¶
func (*Client) UpdateBackup ¶
func (*Client) UpdateDataGroup ¶
func (*Client) UpdateDataInterface ¶
func (*Client) UpdateDataRelayService ¶
func (*Client) UpdateDriverEventCron ¶
func (*Client) UpdateDriverInstance ¶
func (*Client) UpdateDriverInstructCron ¶
func (*Client) UpdateFlow ¶
func (*Client) UpdateFlowJobCron ¶
func (*Client) UpdateFlowLogCron ¶
func (*Client) UpdateFlowTask ¶
func (*Client) UpdateFlowTaskFilter ¶
func (*Client) UpdateLocalAlgorithm ¶
func (*Client) UpdateManyTableData ¶
func (*Client) UpdateManyTableDataByDB ¶
func (*Client) UpdateMediaLibraryDirSetting ¶
func (*Client) UpdateProject ¶
func (*Client) UpdateProjectLicense ¶
func (*Client) UpdateReport ¶
func (*Client) UpdateReportCopy ¶
func (*Client) UpdateRule ¶
func (*Client) UpdateSync ¶
func (*Client) UpdateSystemVariable ¶
func (*Client) UpdateTableData ¶
func (*Client) UpdateTableDataByDB ¶
func (*Client) UpdateTableRecord ¶
func (*Client) UpdateTableSchema ¶
func (*Client) UpdateTaskManager ¶
func (*Client) UpdateUser ¶
func (*Client) UploadBackup ¶
func (*Client) UploadFile ¶
func (c *Client) UploadFile(ctx context.Context, projectId string, mediaLibraryPath, saveFileName, action, uploadFile string) (string, error)
UploadFile 上传文件到媒体库
projectId: 项目ID mediaLibraryPath: 媒体库目录 saveFileName: 保存文件名 action: 文件重复时的行为处理方式. cover: 覆盖, rename: 文件名自动加1 uploadFile: 本地待上传的文件路径
返回值: 文件访问地址, 错误
func (*Client) UploadFileData ¶
func (c *Client) UploadFileData(ctx context.Context, projectId string, mediaLibraryPath, saveFileName, action string, reader io.Reader) (string, error)
UploadFileData 上传文件到媒体库
projectId: 项目ID mediaLibraryPath: 媒体库目录 saveFileName: 保存文件名 action: 文件重复时的行为处理方式. cover: 覆盖, rename: 文件名自动加1 reader: 上传文件的 io.Reader
返回值: 文件访问地址, 错误
func (*Client) UploadFileFromBase64 ¶
func (*Client) UploadFileFromUrl ¶
func (c *Client) UploadFileFromUrl(ctx context.Context, projectId string, sourceUrl string, catalog string, filename string, action string, addBase64 bool) (string, string, float64, error)
UploadFileFromUrl 将远程文件上传到媒体库
sourceUrl 远程文件的下载 url
catalog 上传到媒体库的目录
filename 上传到媒体库后的文件名
上传成功后返回文件的访问地址,base64字符串,文件大小,错误
func (*Client) UploadLicense ¶
func (*Client) UseLicense ¶
type ConditionField ¶
type ConditionField struct {
Name string `json:"name"` // 字段名
Value interface{} `json:"value"` // 值
Op string `json:"op"` // 符号
}
ConditionField
@Description 视图查询条件,如 name = value
type DriverBatchWriteTag ¶
type DriverWriteTag ¶
type KratosRegistryClient ¶
type KratosRegistryClient struct {
// contains filtered or unexported fields
}
func NewKartosRegistryClient ¶
func NewKartosRegistryClient(cli *clientv3.Client, options ...etcd.Option) *KratosRegistryClient
func (*KratosRegistryClient) GetServiceEndpoints ¶
func (reg *KratosRegistryClient) GetServiceEndpoints(serviceInstances []*registry.ServiceInstance, schemes ...string) []string
GetServiceEndpoints 获取服务实例的指定协议的端点. 如果 schemes 为空, 则返回所有端点
serviceInstances: 服务实例列表
schemes: 协议列表, 例如: http, https, grpc 等. 如果为空, 则返回所有端点. 如果不为空, 则返回指定协议的端点
func (*KratosRegistryClient) GetServiceEndpointsByServiceName ¶
func (reg *KratosRegistryClient) GetServiceEndpointsByServiceName(ctx context.Context, serviceName string, allowEmptyEnv bool, envs []string, schemes []string) ([]string, error)
GetServiceEndpointsByServiceName 从注册中心查询指定服务的实例列表, 并获取指定协议的端点
serviceName: 服务名称
allowEmptyEnv: 是否允许环境为空的实例. 如果为 true, 则返回的实例列表中包含未定义 env 元数据或者 env 为空的实例
envs: 环境列表. 如果为空, 则返回所有实例. 如果不为空, 则返回指定环境的实例
schemes: 协议列表, 例如: http, https, grpc 等. 如果为空, 则返回所有端点. 如果不为空, 则返回指定协议的端点
func (*KratosRegistryClient) GetServiceInstances ¶
func (reg *KratosRegistryClient) GetServiceInstances(ctx context.Context, serviceName string, allowEmptyEnv bool, envs ...string) ([]*registry.ServiceInstance, error)
GetServiceInstances 从注册中心查询指定服务的实例列表. 可以通过 env 过滤服务实例
serviceName: 服务名称
allowEmptyEnv: 是否允许环境为空的实例. 如果为 true, 则返回的实例列表中包含未定义 env 元数据或者 env 为空的实例
envs: 环境列表. 如果为空, 则返回所有实例. 如果不为空, 则返回指定环境的实例
func (*KratosRegistryClient) Watch ¶
func (reg *KratosRegistryClient) Watch(ctx context.Context, serviceName string, options ...WatchOption) (*KratosRegistryWatchClient, error)
type KratosRegistryWatchClient ¶
type KratosRegistryWatchClient struct {
// contains filtered or unexported fields
}
func (*KratosRegistryWatchClient) Error ¶
func (rwc *KratosRegistryWatchClient) Error() error
func (*KratosRegistryWatchClient) GetServiceEndpointsByServiceName ¶
func (rwc *KratosRegistryWatchClient) GetServiceEndpointsByServiceName(schemes ...string) ([]string, error)
func (*KratosRegistryWatchClient) GetServiceInstances ¶
func (rwc *KratosRegistryWatchClient) GetServiceInstances() ([]*registry.ServiceInstance, error)
type MultipartReader ¶
type MultipartReader struct {
// contains filtered or unexported fields
}
func NewMultipart ¶
func NewMultipart(fieldName, filename string, reader io.Reader) (*MultipartReader, error)
func (*MultipartReader) FormDataContentType ¶
func (m *MultipartReader) FormDataContentType() string
type OrderByField ¶
type OrderByField struct {
Name string `json:"name"` // 字段名
Desc bool `json:"desc,omitempty"` // 是否降序,默认升序
}
OrderByField @Description 视图排序
type ProxyResult ¶
type QueryParam ¶
type QueryParam struct {
Fields []SelectField `json:"fields,omitempty"` // 包含查询列(原始列originalName或id)、别名和聚合方法
Where WhereFilter `json:"where,omitempty"` // 查询条件
Group []string `json:"group,omitempty"` // 聚合的列(原始列的originalName或id)
Limit *uint `json:"limit,omitempty"` // 查询结果的最大条数
Offset *uint `json:"offset,omitempty"` // 查询结果的偏移量
Order []OrderByField `json:"order,omitempty"` // 排序
EchartType string `json:"echartType"`
NoGroupBy bool `json:"noGroupBy"` // false: groups和stack里的维度字段都会被group by
Stack []string `json:"stack,omitempty"` // 字段id
Drill []string `json:"drill,omitempty"` // 下钻,字段id
GroupAlias []string `json:"groupAlias,omitempty"` // 聚合字段别名
}
type SelectField ¶
type SelectField struct {
Name string `json:"name"` // 数据集的列的列名,使用count函数聚合时不写
Alias string `json:"alias,omitempty"` // 别名
Option *SelectFieldOption `json:"option,omitempty"` // 聚合的列需要加上option
}
SelectField @Description 视图查询的列
type SelectFieldOption ¶
type SelectFieldOption struct {
Aggregator string `json:"aggregator" example:"max"` // 聚合函数
DefaultValue interface{} `json:"defaultValue,omitempty"` // 默认值
Distinct bool `json:"distinct,omitempty"` // 是否去重
Filter *ConditionField `json:"filter,omitempty"` // having过滤
}
SelectFieldOption model info
@Description 查询选项 @Description 如果列涉及到聚合,在选项中配置聚合函
type WatchOption ¶
type WatchOption interface {
Apply(options *watchOptions)
}
type WatchOptionFn ¶
type WatchOptionFn func(options *watchOptions)
func WithAllowEmptyEnv ¶
func WithAllowEmptyEnv(allowEmptyEnv bool) WatchOptionFn
func WithEnvs ¶
func WithEnvs(envs ...string) WatchOptionFn
func WithReconnectInterval ¶
func WithReconnectInterval(interval time.Duration) WatchOptionFn
func (WatchOptionFn) Apply ¶
func (f WatchOptionFn) Apply(options *watchOptions)
type WhereConditions ¶
type WhereConditions struct {
Conditions []ConditionField `json:"conditions"`
// 不同条件之间的关系,false: and, true: or
OR bool `json:"or,omitempty"`
}
WhereConditions 只为兼容原配置保留,不再使用
type WhereFilter ¶
type WhereFilter [][]ConditionField
@Description 视图所有查询条件组,第一级的条件为或关系,第二级的条件为与关系
func (*WhereFilter) UnmarshalJSON ¶
func (wf *WhereFilter) UnmarshalJSON(data []byte) error