Documentation
¶
Overview ¶
dto包提供数据传输对象定义
dto包提供数据传输对象定义
dto包提供数据传输对象定义
dto包提供数据传输对象定义
Index ¶
- type AddAliasesReq
- type AddAliasesReqData
- type AggregateMongoDocumentsReq
- type AnalysisFilter
- type BatchInsertDataReq
- type BatchLiveBroadcast
- type CancelTask
- type CatAliasesReq
- type CatAliasesReqData
- type CatAllocationRequest
- type CatAllocationRequestData
- type CatCountReq
- type CatCountReqData
- type CatHealthReq
- type CatHealthReqData
- type CatNodeReqData
- type CatNodesReq
- type CatShardsReq
- type CatShardsReqData
- type CleanupeRepository
- type ClusterStatsReq
- type ClusterStatsReqData
- type CountMongoDocumentsReq
- type CreateIndexReq
- type CreateIndexReqData
- type CreateReq
- type CreateReqData
- type CreateSnapshot
- type CrudFilter
- type DataxInfoDelReq
- type DataxInfoInsertReq
- type DataxInfoListReq
- type DataxInfoTestLinkReq
- type DeleteByQueryReq
- type DeleteByQueryReqData
- type DeleteDb
- type DeleteEsLink
- type DeleteEsLinkCfg
- type DeleteIndexReq
- type DeleteIndexReqData
- type DeleteManyMongoDocumentsReq
- type DeleteMongoDocumentReq
- type DeleteReq
- type DeleteReqData
- type DeleteSnapshot
- type DsTypeReq
- type DslHistoryListReq
- type DslHistoryListReq2
- type EsAliasInfo
- type EsCat
- type EsConnectData
- type EsDocDeleteRowByID
- type EsDocUpdateByID
- type EsIndexInfo
- type EsMapGetProperties
- type EsMappingInfo
- type EsOptimize
- type EsReIndexInfo
- type EsRest
- type EsSnapshotInfo
- type EsTaskInfo
- type ExecMoreReq
- type ExecSql
- type ExecSqlReq
- type FindMongoDocumentsReq
- type FlushReq
- type FlushReqData
- type GetAliasesReq
- type GetAliasesReqData
- type GetEsCfgRelation
- type GetIndicesReq
- type GetIndicesReqData
- type GetMappingReq
- type GetMappingReqData
- type GetMongoCollectionsReq
- type GetRoles4UserIdReq
- type IndicesClearCacheReq
- type IndicesClearCacheReqData
- type IndicesCloseReq
- type IndicesCloseReqData
- type IndicesForcemergeReq
- type IndicesForcemergeReqData
- type IndicesGetSettingsRequestReq
- type IndicesGetSettingsRequestReqData
- type IndicesPutSettingsRequest
- type IndicesPutSettingsRequestData
- type IndicesSegmentsRequest
- type IndicesSegmentsRequestData
- type InsertEsLink
- type InsertEsLinkCfg
- type InsertManyMongoDocumentsReq
- type InsertMongoDocumentReq
- type InsertOrUpdateDb
- type LiveBroadcast
- type LiveBroadcastEvMsg2AllReq
- type LiveBroadcastEvMsg2RolesReq
- type LiveBroadcastEvMsg2UsersReq
- type LoadDebugPlugin
- type MongoExecReq
- type MoveToAnotherIndexAliasesReq
- type MoveToAnotherIndexAliasesReqData
- type MysqlDbsReq
- type MysqlExecReq
- type MysqlSelectReq
- type MysqlTablesReq
- type NoticeBtnJumpType
- type NoticeData
- type NoticeJumpBtn
- type NoticeLevel
- type OpenReq
- type OpenReqData
- type PerformRequest
- type PingReq
- type PluginRunDsl
- type PluginRunDsl2
- type PutMappingReq
- type PutMappingReqData
- type RedisBatchExecReq
- type RedisExecReq
- type RefreshReq
- type RefreshReqData
- type ReindexReq
- type ReindexReqData
- type RemoveAliasesReq
- type RemoveAliasesReqData
- type Request
- type RestoreSnapshotReq
- type RestoreSnapshotReqData
- type SaveDb
- type SearchReq
- type SearchReqData
- type SelectReq
- type SelectType
- type ShowMongoDbsReq
- type SnapshotCreateRepository
- type SnapshotCreateRepositoryReq
- type SnapshotCreateRepositoryReqData
- type SnapshotCreateReq
- type SnapshotCreateReqData
- type SnapshotDelete
- type SnapshotDeleteRepository
- type SnapshotDeleteRepositoryReq
- type SnapshotDeleteRepositoryReqData
- type SnapshotDeleteReq
- type SnapshotDeleteReqData
- type SnapshotDetail
- type SnapshotGetRepositoryReq
- type SnapshotGetRepositoryReqData
- type SnapshotList
- type SnapshotRestore
- type SnapshotStatus
- type SnapshotStatusReq
- type SnapshotStatusReqData
- type SortStruct
- type SqlToDsl
- type StopDebugPlugin
- type TaskList
- type TaskListReq
- type TasksCancelReq
- type TasksCancelReqData
- type TransferLogReq
- type TransferReq
- type UpdateDb
- type UpdateEsLink
- type UpdateEsLinkCfg
- type UpdateMapping
- type UpdateMongoDocumentReq
- type UpdateReq
- type UpdateReqData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAliasesReq ¶
type AddAliasesReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
AddAliasesReqData AddAliasesReqData `json:"add_aliases_req_data"`
}
type AddAliasesReqData ¶
type AggregateMongoDocumentsReq ¶ added in v0.0.22
type AggregateMongoDocumentsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DbName string `json:"db_name"`
CollectionName string `json:"collection_name"`
Pipeline bson.Pipeline `json:"pipeline"`
}
type AnalysisFilter ¶
type AnalysisFilter struct {
FilterType string `json:"filterType"`
Filts []struct {
FilterType string `json:"filterType"`
Filts []struct {
ColumnName string `json:"columnName"`
Comparator string `json:"comparator"`
FilterType string `json:"filterType"`
Ftv interface{} `json:"ftv"`
} `json:"filts,omitempty"`
Relation string `json:"relation,omitempty"`
ColumnName string `json:"columnName,omitempty"`
Comparator string `json:"comparator,omitempty"`
Ftv interface{} `json:"ftv,omitempty"`
} `json:"filts"`
Relation string `json:"relation"`
}
type BatchInsertDataReq ¶ added in v0.0.23
type BatchInsertDataReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DbName string `json:"db_name"`
TableName string `json:"table_name"`
Cols []string `json:"cols"`
Data [][]interface{} `json:"data"`
}
type BatchLiveBroadcast ¶ added in v0.0.10
type BatchLiveBroadcast struct {
Channel string `json:"channel"`
List []interface{} `json:"list"`
}
type CancelTask ¶
type CatAliasesReq ¶
type CatAliasesReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
CatAliasesReqData CatAliasesReqData `json:"cat_aliases_req_data"`
}
type CatAliasesReqData ¶
type CatAliasesReqData struct {
CatRequest proto.CatAliasesRequest
}
type CatAllocationRequest ¶
type CatAllocationRequest struct {
EsConnectData EsConnectData `json:"es_connect_data"`
CatAllocationRequestData CatAllocationRequestData `json:"cat_allocation_request_data"`
}
type CatAllocationRequestData ¶
type CatAllocationRequestData struct {
CatRequest proto.CatAllocationRequest
}
type CatCountReq ¶
type CatCountReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
CatCountReqData CatCountReqData `json:"cat_count_req_data"`
}
type CatCountReqData ¶
type CatCountReqData struct {
CatRequest proto.CatCountRequest
}
type CatHealthReq ¶
type CatHealthReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
CatHealthReqData CatHealthReqData `json:"cat_health_req_data"`
}
type CatHealthReqData ¶
type CatHealthReqData struct {
CatRequest proto.CatHealthRequest
}
type CatNodeReqData ¶
type CatNodeReqData struct {
H []string `json:"h"`
}
type CatNodesReq ¶
type CatNodesReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
CatNodeReqData CatNodeReqData `json:"cat_node_req_data"`
}
type CatShardsReq ¶
type CatShardsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
CatShardsReqData CatShardsReqData `json:"cat_shards_req_data"`
}
type CatShardsReqData ¶
type CatShardsReqData struct {
CatRequest proto.CatShardsRequest
}
type CleanupeRepository ¶
type ClusterStatsReq ¶
type ClusterStatsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
ClusterStatsReqData ClusterStatsReqData `json:"cluster_stats_req_data"`
}
type ClusterStatsReqData ¶
type ClusterStatsReqData struct {
Human bool `json:"human"`
}
type CountMongoDocumentsReq ¶ added in v0.0.22
type CountMongoDocumentsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DbName string `json:"db_name"`
CollectionName string `json:"collection_name"`
Filter bson.M `json:"filter"`
}
type CreateIndexReq ¶
type CreateIndexReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
CreateIndexReqData CreateIndexReqData `json:"create_index_req_data"`
}
type CreateIndexReqData ¶
type CreateIndexReqData struct {
IndexCreateRequest proto.IndicesCreateRequest
Body interface{}
}
type CreateReq ¶
type CreateReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
CreateReqData CreateReqData `json:"create_req_data"`
}
type CreateReqData ¶
type CreateReqData struct {
CreateRequest proto.CreateRequest
Body interface{}
}
type CreateSnapshot ¶
type CreateSnapshot struct {
SnapshotName string `json:"snapshotName"`
RepositoryName string `json:"repositoryName"`
IndexList []string `json:"indexList"`
IncludeGlobalState *bool `json:"include_global_state"`
Partial *bool `json:"partial"`
Wait *bool `json:"wait"`
EsConnect int `json:"es_connect"`
}
type CrudFilter ¶
type CrudFilter struct {
Relation AnalysisFilter `json:"relation"`
SortList []SortStruct `json:"sort_list"`
EsConnect int `json:"es_connect"`
IndexName string `json:"index_name"`
Page int `json:"page"`
Limit int `json:"limit"`
}
type DataxInfoDelReq ¶
type DataxInfoDelReq struct {
ID int `json:"id"`
}
type DataxInfoInsertReq ¶
type DataxInfoInsertReq struct {
IP string `json:"ip"`
Port int `json:"port"`
DbName string `json:"db_name"`
Username string `json:"username"`
Pwd string `json:"pwd"`
Remark string `json:"remark"`
Typ string `json:"typ"`
}
func (DataxInfoInsertReq) Validate ¶
func (this DataxInfoInsertReq) Validate() (err error)
type DataxInfoListReq ¶
type DataxInfoTestLinkReq ¶
type DeleteByQueryReq ¶
type DeleteByQueryReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DeleteByQueryReqData DeleteByQueryReqData `json:"delete_by_query_req_data"`
}
type DeleteByQueryReqData ¶
type DeleteDb ¶ added in v0.0.11
type DeleteDb struct {
// 插件ID
PluginId string `json:"plugin_id"`
// 目标表名
TableName string `json:"table"` // 目标表名
// WHERE条件SQL
WhereSql string `json:"where_sql"`
// WHERE条件参数
WhereArgs []interface{} `json:"where_args"`
}
DeleteDb 删除数据库记录请求结构
type DeleteEsLink ¶
type DeleteEsLink struct {
Id int `json:"id"`
}
type DeleteEsLinkCfg ¶
type DeleteEsLinkCfg struct {
Id int `json:"id"`
}
type DeleteIndexReq ¶
type DeleteIndexReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DeleteIndexReqData DeleteIndexReqData `json:"delete_index_req_data"`
}
type DeleteIndexReqData ¶
type DeleteIndexReqData struct {
IndicesDeleteRequest proto.IndicesDeleteRequest
}
type DeleteManyMongoDocumentsReq ¶ added in v0.0.22
type DeleteManyMongoDocumentsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DocIds []interface{} `json:"doc_ids"`
DbName string `json:"db_name"`
CollectionName string `json:"collection_name"`
}
type DeleteMongoDocumentReq ¶ added in v0.0.22
type DeleteMongoDocumentReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DbName string `json:"db_name"`
CollectionName string `json:"collection_name"`
DocId interface{} `json:"doc_id"`
Filter bson.M `json:"filter"`
}
type DeleteReq ¶
type DeleteReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DeleteReqData DeleteReqData `json:"delete_req_data"`
}
type DeleteReqData ¶
type DeleteReqData struct {
DeleteRequest proto.DeleteRequest
}
type DeleteSnapshot ¶
type DsTypeReq ¶ added in v0.0.21
type DsTypeReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
}
type DslHistoryListReq ¶
type DslHistoryListReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
IndexName string `json:"indexName"` // 索引名
Date []string `json:"date"` //开始时间与结束时间(格式:”年-月-日 时:分:秒“ )
Page int `json:"page"` //拉取数据当前页
Limit int `json:"limit"` //拉取条数
}
type DslHistoryListReq2 ¶
type DslHistoryListReq2 struct {
// 索引名
IndexName string `json:"indexName"`
// 开始时间与结束时间(格式:"年-月-日 时:分:秒")
Date []string `json:"date"`
// 当前页码
Page int `json:"page"`
// 每页条数
Limit int `json:"limit"`
}
DslHistoryListReq2 DSL历史列表请求结构
type EsAliasInfo ¶
type EsAliasInfo struct {
EsConnect int `json:"es_connect"`
Settings common.Json `json:"settings"`
IndexName string `json:"index_name"`
AliasName string `json:"alias_name"`
NewAliasNameList []string `json:"new_alias_name_list"`
NewIndexList []string `json:"new_index_list"`
Types int `json:"types"`
}
type EsConnectData ¶
type EsDocDeleteRowByID ¶
type EsDocUpdateByID ¶
type EsIndexInfo ¶
type EsMapGetProperties ¶
type EsMappingInfo ¶
type EsOptimize ¶
type EsReIndexInfo ¶
type EsReIndexInfo struct {
EsConnect int `json:"es_connect"`
UrlValues struct {
Timeout int `json:"timeout"`
RequestsPerSecond int `json:"requests_per_second"`
Slices int `json:"slices"`
Scroll string `json:"scroll"`
WaitForActiveShards string `json:"wait_for_active_shards"`
Refresh *bool `json:"refresh"`
WaitForCompletion *bool `json:"wait_for_completion"`
} `json:"url_values"`
Body map[string]interface{} `json:"body"`
}
type EsSnapshotInfo ¶
type EsTaskInfo ¶
type ExecMoreReq ¶ added in v0.0.10
type ExecMoreReq struct {
// 插件ID
PluginId string `json:"plugin_id"`
// SQL语句列表
Sqls []ExecSql `json:"sqls"`
}
ExecMoreReq 批量SQL执行请求结构
type ExecSql ¶ added in v0.0.10
type ExecSql struct {
// SQL语句
Sql string `json:"sql"`
// SQL参数
Args []interface{} `json:"args"`
}
ExecSql SQL执行结构
type ExecSqlReq ¶
type ExecSqlReq struct {
// 插件ID
PluginId string `json:"plugin_id"`
// SQL语句
Sql string `json:"sql"`
// SQL参数
Args []interface{} `json:"args"`
}
ExecSqlReq SQL执行请求结构
type FindMongoDocumentsReq ¶ added in v0.0.22
type FindMongoDocumentsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DbName string `json:"db_name"`
CollectionName string `json:"collection_name"`
Filter bson.M `json:"filter"`
Projection bson.M `json:"projection"`
Sort bson.D `json:"sort"`
Skip int64 `json:"skip"`
Limit int64 `json:"limit"`
}
type FlushReq ¶
type FlushReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
FlushReqData FlushReqData `json:"flush_req"`
}
type FlushReqData ¶
type FlushReqData struct {
IndexNames []string `json:"index_names"`
}
type GetAliasesReq ¶
type GetAliasesReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
GetAliasesReqData GetAliasesReqData `json:"get_aliases_req_data"`
}
type GetAliasesReqData ¶
type GetAliasesReqData struct {
IndexNames []string
}
type GetEsCfgRelation ¶
type GetEsCfgRelation struct {
ID int `json:"id"`
}
type GetIndicesReq ¶
type GetIndicesReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
GetIndicesReqData GetIndicesReqData `json:"get_indices_req_data"`
}
type GetIndicesReqData ¶
type GetIndicesReqData struct {
CatIndicesRequest proto.CatIndicesRequest
}
type GetMappingReq ¶
type GetMappingReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
GetMappingReqData GetMappingReqData `json:"get_mapping_req_data"`
}
type GetMappingReqData ¶
type GetMappingReqData struct {
IndexNames []string
}
type GetMongoCollectionsReq ¶ added in v0.0.22
type GetMongoCollectionsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DbName string `json:"db_name"`
}
type GetRoles4UserIdReq ¶ added in v0.0.7
type GetRoles4UserIdReq struct {
UserId int `json:"user_id"`
}
type IndicesClearCacheReq ¶
type IndicesClearCacheReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
IndicesClearCacheReqData IndicesClearCacheReqData `json:"indices_clear_cache_req_data"`
}
type IndicesClearCacheReqData ¶
type IndicesClearCacheReqData struct {
IndexNames []string `json:"index_names"`
}
type IndicesCloseReq ¶
type IndicesCloseReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
IndicesCloseReqData IndicesCloseReqData `json:"indices_close_req_data"`
}
type IndicesCloseReqData ¶
type IndicesCloseReqData struct {
IndexNames []string `json:"index_names"`
}
type IndicesForcemergeReq ¶
type IndicesForcemergeReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
IndicesForcemergeReqData IndicesForcemergeReqData `json:"indices_forcemerge_req_data"`
}
type IndicesGetSettingsRequestReq ¶
type IndicesGetSettingsRequestReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
IndicesGetSettingsRequestReqData IndicesGetSettingsRequestReqData `json:"indices_get_settings_request_req_data"`
}
type IndicesGetSettingsRequestReqData ¶
type IndicesGetSettingsRequestReqData struct {
IndicesGetSettingsRequest proto.IndicesGetSettingsRequest
}
type IndicesPutSettingsRequest ¶
type IndicesPutSettingsRequest struct {
EsConnectData EsConnectData `json:"es_connect_data"`
IndicesPutSettingsRequestData IndicesPutSettingsRequestData `json:"indices_put_settings_request_data"`
}
type IndicesPutSettingsRequestData ¶
type IndicesPutSettingsRequestData struct {
IndexSettingsRequest proto.IndicesPutSettingsRequest
Body interface{}
}
type IndicesSegmentsRequest ¶
type IndicesSegmentsRequest struct {
EsConnectData EsConnectData `json:"es_connect_data"`
IndicesSegmentsRequestData IndicesSegmentsRequestData `json:"indices_segments_request_data"`
}
type IndicesSegmentsRequestData ¶
type IndicesSegmentsRequestData struct {
Human bool `json:"human"`
}
type InsertEsLink ¶
type InsertEsLinkCfg ¶
type InsertManyMongoDocumentsReq ¶ added in v0.0.22
type InsertManyMongoDocumentsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DbName string `json:"db_name"`
CollectionName string `json:"collection_name"`
Docs []bson.M `json:"docs"`
}
type InsertMongoDocumentReq ¶ added in v0.0.22
type InsertMongoDocumentReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
DbName string `json:"db_name"`
CollectionName string `json:"collection_name"`
Doc bson.M `json:"doc"`
}
type InsertOrUpdateDb ¶ added in v0.0.11
type InsertOrUpdateDb struct {
// 插件ID
PluginId string `json:"plugin_id"`
// 目标表名
TableName string `json:"table"` // 目标表名
// 没有则新增,有则更新的数据
UpsertData map[string]interface{} // 没有则新增,有则更新
// 冲突检查的唯一键
UniqueKeys []string // 冲突检查的唯一键
}
InsertOrUpdateDb 插入或更新数据库请求结构
type LiveBroadcast ¶ added in v0.0.10
type LiveBroadcast struct {
Channel string `json:"channel"`
Data interface{} `json:"data"`
}
type LiveBroadcastEvMsg2AllReq ¶ added in v0.0.12
type LiveBroadcastEvMsg2AllReq struct {
NoticeData *NoticeData `json:"notice_data"`
}
type LiveBroadcastEvMsg2RolesReq ¶ added in v0.0.12
type LiveBroadcastEvMsg2RolesReq struct {
NoticeData *NoticeData `json:"notice_data"`
RoleIds []int `json:"role_ids"`
}
type LiveBroadcastEvMsg2UsersReq ¶ added in v0.0.12
type LiveBroadcastEvMsg2UsersReq struct {
NoticeData *NoticeData `json:"notice_data"`
UserIds []int `json:"user_ids"`
}
type LoadDebugPlugin ¶
type MongoExecReq ¶
type MongoExecReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
// 数据库名称
DbName string `json:"db_name"`
// MongoDB命令
Command bson.D `json:"command"`
// 超时时间
Timeout time.Duration `json:"timeout"`
}
MongoExecReq MongoDB执行请求结构
type MoveToAnotherIndexAliasesReq ¶
type MoveToAnotherIndexAliasesReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
MoveToAnotherIndexAliasesReqData MoveToAnotherIndexAliasesReqData `json:"move_to_another_index_aliases_req_data"`
}
type MoveToAnotherIndexAliasesReqData ¶
type MoveToAnotherIndexAliasesReqData struct {
Body proto.AliasAction
}
type MysqlDbsReq ¶ added in v0.0.20
type MysqlDbsReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
}
type MysqlExecReq ¶
type MysqlExecReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
// SQL语句
Sql string `json:"sql"`
// SQL参数
Args []interface{} `json:"args"`
// 数据库名称
DbName string `json:"dbName"`
}
MysqlExecReq MySQL执行请求结构
type MysqlSelectReq ¶
type MysqlSelectReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
// SQL语句
Sql string `json:"sql"`
// SQL参数
Args []interface{} `json:"args"`
// 数据库名称
DbName string `json:"dbName"`
}
MysqlSelectReq MySQL查询请求结构
type MysqlTablesReq ¶ added in v0.0.20
type MysqlTablesReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
// 数据库名称
DbName string `json:"dbName"`
}
type NoticeBtnJumpType ¶ added in v0.0.12
type NoticeBtnJumpType = string
const ( NoticeBtnJumpTypeInternal NoticeBtnJumpType = "internal" NoticeBtnJumpTypeRemote NoticeBtnJumpType = "remote" NoticeBtnJumpTypeReload NoticeBtnJumpType = "reload" )
type NoticeData ¶ added in v0.0.12
type NoticeData struct {
Title string `json:"title"` //标题
Content string `json:"content"` //内容
Type string `json:"type"` //通知类型(如 system, alert, announcement)
Level NoticeLevel `json:"level"` //消息严重程度 info, warn, danger,success,primary
IsTask bool `json:"is_task"` //是否定时任务
FromUid int `json:"from_uid"` //用户id
PluginAlias string `json:"plugin_alias"` //插件id
Source string `json:"source"` //来源
NoticeJumpBtn *NoticeJumpBtn `json:"notice_jump_btn,omitempty"` //跳转按钮
PublishTime time.Time `json:"publish_time"` //发布时间
}
func (*NoticeData) Validate ¶ added in v0.0.12
func (this *NoticeData) Validate() error
type NoticeJumpBtn ¶ added in v0.0.12
type NoticeJumpBtn struct {
Text string `json:"text"` //按钮文案
JumpUrl string `json:"jump_url"` //跳转链接
JumpType NoticeBtnJumpType `json:"jump_type"` // 跳转类型: "internal" 或 "external"
}
type NoticeLevel ¶ added in v0.0.12
type NoticeLevel = string
const ( NoticeLevelPrimary NoticeLevel = "primary" NoticeLevelSuccess NoticeLevel = "success" NoticeLevelInfo NoticeLevel = "info" NoticeLevelWarning NoticeLevel = "warning" NoticeLevelDanger NoticeLevel = "danger" )
primary,success,info,warning,danger
type OpenReq ¶
type OpenReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
OpenReqData OpenReqData `json:"open_req_data"`
}
type OpenReqData ¶
type OpenReqData struct {
IndexNames []string `json:"index_names"`
}
type PerformRequest ¶
type PerformRequest struct {
EsConnectData EsConnectData `json:"es_connect_data"`
Request *Request `json:"request"`
}
type PingReq ¶
type PingReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
}
type PluginRunDsl ¶
type PluginRunDsl2 ¶
type PutMappingReq ¶
type PutMappingReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
PutMappingReqData PutMappingReqData `json:"put_mapping_req_data"`
}
type PutMappingReqData ¶
type PutMappingReqData struct {
IndicesPutMappingRequest proto.IndicesPutMappingRequest
Body interface{}
}
type RedisBatchExecReq ¶ added in v0.0.20
type RedisBatchExecReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
// 命令参数
Args [][]interface{} `json:"args"`
// 数据库索引
DbName int `json:"dbName"`
}
type RedisExecReq ¶
type RedisExecReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
// 命令参数
Args []interface{} `json:"args"`
// 数据库索引
DbName int `json:"dbName"`
}
RedisExecReq Redis执行请求结构
type RefreshReq ¶
type RefreshReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
RefreshReqData RefreshReqData `json:"refresh_req_data"`
}
type RefreshReqData ¶
type RefreshReqData struct {
IndexNames []string `json:"index_names"`
}
type ReindexReq ¶
type ReindexReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
ReindexReqData ReindexReqData `json:"reindex_req_data"`
}
type ReindexReqData ¶
type ReindexReqData struct {
ReindexRequest proto.ReindexRequest
Body interface{}
}
type RemoveAliasesReq ¶
type RemoveAliasesReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
RemoveAliasesReqData RemoveAliasesReqData `json:"remove_aliases_req_data"`
}
type RemoveAliasesReqData ¶
type RestoreSnapshotReq ¶
type RestoreSnapshotReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
RestoreSnapshotReqData RestoreSnapshotReqData `json:"restore_snapshot_req_data"`
}
type RestoreSnapshotReqData ¶
type SaveDb ¶ added in v0.0.11
type SaveDb struct {
// 插件ID
PluginId string `json:"plugin_id"`
// 目标表名
TableName string `json:"table"` // 目标表名
// 要插入或更新的数据
Data interface{} `json:"data"` // 要插入或更新的数据
}
SaveDb 保存数据到数据库请求结构
type SearchReq ¶
type SearchReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
SearchReqData SearchReqData `json:"search_req_data"`
}
type SearchReqData ¶
type SearchReqData struct {
SearchRequest proto.SearchRequest
Query interface{}
}
type SelectReq ¶
type SelectReq struct {
// 插件ID
PluginId string `json:"plugin_id"`
// SQL语句
Sql string `json:"sql"`
// SQL参数
Args []interface{} `json:"args"`
}
SelectReq SQL查询请求结构
type SelectType ¶
type ShowMongoDbsReq ¶
type ShowMongoDbsReq struct {
// ES连接数据
EsConnectData EsConnectData `json:"es_connect_data"`
}
ShowMongoDbsReq 显示MongoDB数据库请求结构
type SnapshotCreateRepository ¶
type SnapshotCreateRepository struct {
EsConnect int `json:"es_connect"` //es连接id
Repository string `json:"name"` //存储库名
Type string `json:"type"` //类型 fs/url
Location string `json:"location"` //存储位置
Compress string `json:"compress"` //是否压缩 true/false
MaxRestoreBytesPerSec string `json:"max_restore_bytes_per_sec"` //节点恢复速率
MaxSnapshotBytesPerSec string `json:"max_snapshot_bytes_per_sec"` //每个节点快照速率
ChunkSize string `json:"chunk_size"` //大文件分解块大小
Readonly string `json:"readonly"` //是否只读
}
type SnapshotCreateRepositoryReq ¶
type SnapshotCreateRepositoryReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
SnapshotCreateRepositoryReqData SnapshotCreateRepositoryReqData `json:"snapshot_create_repository_req_data"`
}
type SnapshotCreateReq ¶
type SnapshotCreateReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
SnapshotCreateReqData SnapshotCreateReqData `json:"snapshot_create_req_data"`
}
type SnapshotCreateReqData ¶
type SnapshotDelete ¶
type SnapshotDeleteRepositoryReq ¶
type SnapshotDeleteRepositoryReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
SnapshotDeleteRepositoryReqData SnapshotDeleteRepositoryReqData `json:"snapshot_delete_repository_req_data"`
}
type SnapshotDeleteRepositoryReqData ¶
type SnapshotDeleteRepositoryReqData struct {
Repository []string
}
type SnapshotDeleteReq ¶
type SnapshotDeleteReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
SnapshotDeleteReqData SnapshotDeleteReqData `json:"snapshot_delete_req_data"`
}
type SnapshotDeleteReqData ¶
type SnapshotDetail ¶
type SnapshotGetRepositoryReq ¶
type SnapshotGetRepositoryReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
SnapshotGetRepositoryReqData SnapshotGetRepositoryReqData `json:"snapshot_get_repository_req_data"`
}
type SnapshotGetRepositoryReqData ¶
type SnapshotGetRepositoryReqData struct {
Repository []string
}
type SnapshotList ¶
type SnapshotRestore ¶
type SnapshotRestore struct {
SnapshotName string `json:"snapshotName"`
RepositoryName string `json:"repositoryName"`
IndexList []string `json:"indexList"`
IncludeGlobalState *bool `json:"include_global_state"`
Partial *bool `json:"partial"`
Wait *bool `json:"wait"`
EsConnect int `json:"es_connect"`
RenamePattern string `json:"rename_pattern"`
RenameReplacement string `json:"rename_replacement"`
}
type SnapshotStatus ¶
type SnapshotStatusReq ¶
type SnapshotStatusReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
SnapshotStatusReqData SnapshotStatusReqData `json:"snapshot_status_req_data"`
}
type SnapshotStatusReqData ¶
type SortStruct ¶
type StopDebugPlugin ¶
type StopDebugPlugin struct {
ID string `json:"id"`
}
type TaskListReq ¶
type TaskListReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
}
type TasksCancelReq ¶
type TasksCancelReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
TasksCancelReqData TasksCancelReqData `json:"tasks_cancel_req_data"`
}
type TasksCancelReqData ¶
type TasksCancelReqData struct {
TaskId string
}
type TransferLogReq ¶
type TransferLogReq struct {
EsConnect int `json:"es_connect"`
}
type TransferReq ¶
type TransferReq struct {
AutoIncrementId string `json:"autoIncrementId"`
EsConnect int `json:"es_connect"`
SelectType string `json:"selectType"`
Remark string `json:"remark"`
SelectTable string `json:"selectTable"`
TypeName string `json:"type_name"`
Cols struct {
TableCols []string `json:"tableCols"`
EsCols []struct {
Col string `json:"col"`
TbCol string `json:"tbCol"`
} `json:"esCols"`
} `json:"cols"`
IndexName string `json:"indexName"`
Reset bool `json:"reset"`
GoNum int `json:"goNum"`
EsFlushInterval int `json:"esFlushInterval"`
EsBufferSize int `json:"esBufferSize"`
EsDocID string `json:"esDocId"`
BufferSize int `json:"bufferSize"`
MaxIdleConns int `json:"maxIdleConns"`
MaxOpenConns int `json:"maxOpenConns"`
CrontabSpec string `json:"crontab_spec"`
}
func (*TransferReq) ParseSelectType ¶
func (this *TransferReq) ParseSelectType() (*SelectType, error)
type UpdateDb ¶ added in v0.0.11
type UpdateDb struct {
// 插件ID
PluginId string `json:"plugin_id"`
// 目标表名
TableName string `json:"table"` // 目标表名
// 更新SQL语句
UpdateSql string `json:"update_sql"`
// 更新SQL参数
UpdateArgs []interface{} `json:"update_args"`
// 要插入或更新的数据
Data map[string]interface{} `json:"data"` // 要插入或更新的数据
}
UpdateDb 更新数据库请求结构
type UpdateEsLink ¶
type UpdateEsLinkCfg ¶
type UpdateMapping ¶
type UpdateMongoDocumentReq ¶ added in v0.0.22
type UpdateReq ¶
type UpdateReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
UpdateReqData UpdateReqData `json:"update_req_data"`
}
type UpdateReqData ¶
type UpdateReqData struct {
UpdateRequest proto.UpdateRequest
Body interface{}
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.