Documentation ¶
Index ¶
- type AddAliasesReq
- type AddAliasesReqData
- type AnalysisFilter
- 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 CreateIndexReq
- type CreateIndexReqData
- type CreateReq
- type CreateReqData
- type CreateSnapshot
- type CrudFilter
- type DataxInfoDelReq
- type DataxInfoInsertReq
- type DataxInfoListReq
- type DataxInfoTestLinkReq
- type DeleteByQueryReq
- type DeleteByQueryReqData
- type DeleteEsLink
- type DeleteEsLinkCfg
- type DeleteIndexReq
- type DeleteIndexReqData
- type DeleteReq
- type DeleteReqData
- type DeleteSnapshot
- 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 ExecSqlReq
- type FlushReq
- type FlushReqData
- type GetAliasesReq
- type GetAliasesReqData
- type GetEsCfgRelation
- type GetIndicesReq
- type GetIndicesReqData
- type GetMappingReq
- type GetMappingReqData
- 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 LoadDebugPlugin
- type MongoExecReq
- type MoveToAnotherIndexAliasesReq
- type MoveToAnotherIndexAliasesReqData
- type MysqlExecReq
- type MysqlSelectReq
- type OpenReq
- type OpenReqData
- type PerformRequest
- type PingReq
- type PluginRunDsl
- type PluginRunDsl2
- type PutMappingReq
- type PutMappingReqData
- type RedisExecReq
- type RefreshReq
- type RefreshReqData
- type ReindexReq
- type ReindexReqData
- type RemoveAliasesReq
- type RemoveAliasesReqData
- type Request
- type RestoreSnapshotReq
- type RestoreSnapshotReqData
- 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 UpdateEsLink
- type UpdateEsLinkCfg
- type UpdateMapping
- 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 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 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 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 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 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 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 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 ExecSqlReq ¶
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 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 LoadDebugPlugin ¶
type MongoExecReq ¶
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 MysqlExecReq ¶
type MysqlExecReq struct { EsConnectData EsConnectData `json:"es_connect_data"` Sql string `json:"sql"` Args []interface{} `json:"args"` DbName string `json:"dbName"` }
type MysqlSelectReq ¶
type MysqlSelectReq struct { EsConnectData EsConnectData `json:"es_connect_data"` Sql string `json:"sql"` Args []interface{} `json:"args"` DbName string `json:"dbName"` }
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 RedisExecReq ¶
type RedisExecReq struct { EsConnectData EsConnectData `json:"es_connect_data"` Args []interface{} `json:"args"` DbName int `json:"dbName"` }
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 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 SelectType ¶
type ShowMongoDbsReq ¶
type ShowMongoDbsReq struct {
EsConnectData EsConnectData `json:"es_connect_data"`
}
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 UpdateEsLink ¶
type UpdateEsLinkCfg ¶
type UpdateMapping ¶
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.