Documentation
¶
Index ¶
- type AAgg
- type AMetric
- type AOrder
- type APipe
- type ARange
- type ARanges
- type ASize
- type ASub
- type Agg
- type Attributes
- type BufferPools
- type CPU
- type ChainStatus
- type ChainVersionInfo
- type Classes
- type ClientRequest
- type ClientRequestNil
- type Collectors
- type Completion
- type Direct
- type Docs
- type DonationStatItem
- type DonationStats
- type EVMToken
- type EsStatus
- type Fielddata
- type FileSizes
- type Flush
- type Gc
- type GcOld
- type GcYoung
- type Get
- type HTTP
- type Health
- type ISearch
- type Indexing
- type Indices
- type Jvm
- type JvmMem
- type ListEVMResult
- type ListProofResult
- type LoadAverage
- type Mapped
- type Member
- type Merges
- type Node
- type NodesCount
- type Organization
- type Os
- type OsMem
- type Pools
- type PoolsOld
- type PoolsYoung
- type Proof
- type QFetch
- type QMatch
- type QMultiMatch
- type QPage
- type QRange
- type QSize
- type QSort
- type Query
- type QueryCache
- type Recovery
- type Refresh
- type RequestCache
- type Search
- type Segments
- type ServerResponse
- type ServerStatus
- type Status
- type Store
- type SubTermsAgges
- type Survivor
- type Swap
- type Template
- type TermsAgg
- type Threads
- type Translog
- type VolunteerStats
- type VolunteerStatsResult
- type Warmer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMetric ¶
type AMetric struct {
Sum *AAgg `json:"sum"` // 和
Avg *AAgg `json:"avg"` // 平均值
Min *AAgg `json:"min"` // 最小值
Max *AAgg `json:"max"` // 最大值
}
AMetric 指标聚合
type AOrder ¶
type AOrder struct {
Name string `json:"name"` // 名称
Key string `json:"key"` // 字段名
Asc bool `json:"asc"` // 是否升序
}
AOrder 排序
type APipe ¶
type APipe struct {
Order *AOrder `json:"order"` // 排序
}
APipe 管道聚合:对其它聚合操作的输出以及关联指标进行聚合
type ARange ¶
type ARange struct {
RStart interface{} `json:"start"` // 开始位置(大于等于)
REnd interface{} `json:"end"` // 结束位置(小于等于)
}
ARange 范围
type ASub ¶
type ASub struct {
Sum []*AAgg `json:"sum"` // 和
Avg []*AAgg `json:"avg"` // 平均值
Min []*AAgg `json:"min"` // 最小值
Max []*AAgg `json:"max"` // 最大值
Pipeline *APipe `json:"pipeline"` // 管道聚合
SubAgg *Agg `json:"sub_agg"` // 子组合
}
ASub 对聚合的嵌套操作
type Attributes ¶
type BufferPools ¶
type CPU ¶
type CPU struct {
Percent int `json:"percent"` //
LoadAverage LoadAverage `json:"load_average"` //
}
type ChainStatus ¶
type ChainStatus struct {
Status string `json:"status"` // 状态
PushSeq int64 `json:"push_seq"` // 推送高度
Coin string `json:"coin"` // 主代币信息
Version *ChainVersionInfo `json:"version"` // 版本
}
ChainStatus 区块链状态信息
type ChainVersionInfo ¶
type ChainVersionInfo struct {
Title string `json:"title"` // 区块链名,该节点 chain33.toml 中配置的 title 值
App string `json:"app"` // 应用 app 的版本
Chain33 string `json:"chain33"` // 版本信息,版本号-GitCommit(前八个字符)
LocalDB string `json:"localDb"` // localdb 版本号
}
ChainVersionInfo 区块链版本信息
type ClientRequest ¶
type ClientRequestNil ¶
type ClientRequestNil struct {
Method string `json:"method" label:"方法"` // 方法
ID uint64 `json:"id"` // 请求标识
}
ClientRequestNil swagger:parameters
type Collectors ¶
type Completion ¶
type Completion struct {
SizeInBytes int `json:"size_in_bytes"` //
}
type DonationStatItem ¶
type DonationStats ¶
type DonationStats struct {
Items []DonationStatItem `json:"itemes"` // 列表
}
type EVMToken ¶
type EVMToken struct {
Amount int `json:"amount"` // 金额
CallFuncName string `json:"call_func_name"` // 调用方法名称
ContractAddr string `json:"contract_addr"` // 合约地址
ContractUsedGas int `json:"contract_used_gas"` // 消耗gas
EvmBlockHash string `json:"evm_block_hash"` // 区块hash
EvmBlockTime int `json:"evm_block_time"` // 上链时间
EvmEvents string `json:"evm_events"` // evm事件
EvmHeight int `json:"evm_height"` // 区块高度
EvmHeightIndex int64 `json:"evm_height_index"` // 高度索引
EvmNote string `json:"evm_note"` // 备注信息
EvmParam string `json:"evm_param"` // evm调用参数
EvmTxHash string `json:"evm_tx_hash"` // 交易hash
GoodsType int `json:"goods_type"` // 物品类型
GoodsID int `json:"goods_id"` // 物品唯一标识
LabelID string `json:"label_id"` // 物品标签id
Name string `json:"name"` // 物品名称
Owner string `json:"owner"` // 拥有者
PublishTime int `json:"publish_time"` // 发布时间
Publisher string `json:"publisher"` // 发布者
Remark string `json:"remark"` // 备注
SourceHash []string `json:"source_hash"` // 关联交易hash
TraceHash []string `json:"trace_hash"` // 关联溯源hash
}
type EsStatus ¶
type EsStatus struct {
Status string `json:"status"` // 状态
NodesCount NodesCount `json:"_nodes"` // 节点数量信息
ClusterName string `json:"cluster_name"` // 集群名
Nodes map[string]Node `json:"nodes"` // 节点信息
}
type Gc ¶
type Gc struct {
Collectors Collectors `json:"collectors"` //
}
type Get ¶
type Get struct {
Total int `json:"total"` //
TimeInMillis int `json:"time_in_millis"` //
ExistsTotal int `json:"exists_total"` //
ExistsTimeInMillis int `json:"exists_time_in_millis"` //
MissingTotal int `json:"missing_total"` //
MissingTimeInMillis int `json:"missing_time_in_millis"` //
Current int `json:"current"` //
}
type Health ¶
type Health struct {
Status string `json:"status" label:"状态"` // 状态
Version string `json:"version"` // 版本
}
Health 服务健康状态
type ISearch ¶
type ISearch struct {
OpenContexts int `json:"open_contexts"` //
QueryTotal int `json:"query_total"` //
QueryTimeInMillis int `json:"query_time_in_millis"` //
QueryCurrent int `json:"query_current"` //
FetchTotal int `json:"fetch_total"` //
FetchTimeInMillis int `json:"fetch_time_in_millis"` //
FetchCurrent int `json:"fetch_current"` //
ScrollTotal int `json:"scroll_total"` //
ScrollTimeInMillis int `json:"scroll_time_in_millis"` //
ScrollCurrent int `json:"scroll_current"` //
SuggestTotal int `json:"suggest_total"` //
SuggestTimeInMillis int `json:"suggest_time_in_millis"` //
SuggestCurrent int `json:"suggest_current"` //
}
type Indexing ¶
type Indexing struct {
IndexTotal int `json:"index_total"` //
IndexTimeInMillis int `json:"index_time_in_millis"` //
IndexCurrent int `json:"index_current"` //
IndexFailed int `json:"index_failed"` //
DeleteTotal int `json:"delete_total"` //
DeleteTimeInMillis int `json:"delete_time_in_millis"` //
DeleteCurrent int `json:"delete_current"` //
NoopUpdateTotal int `json:"noop_update_total"` //
IsThrottled bool `json:"is_throttled"` //
ThrottleTimeInMillis int `json:"throttle_time_in_millis"` //
}
type Indices ¶
type Indices struct {
Docs Docs `json:"docs"` //
Store Store `json:"store"` //
Indexing Indexing `json:"indexing"` //
Get Get `json:"get"` //
Search ISearch `json:"search"` //
Merges Merges `json:"merges"` //
Refresh Refresh `json:"refresh"` //
Flush Flush `json:"flush"` //
Warmer Warmer `json:"warmer"` //
QueryCache QueryCache `json:"query_cache"` //
Fielddata Fielddata `json:"fielddata"` //
Completion Completion `json:"completion"` //
Segments Segments `json:"segments"` //
Translog Translog `json:"translog"` //
RequestCache RequestCache `json:"request_cache"` //
Recovery Recovery `json:"recovery"` //
}
type JvmMem ¶
type JvmMem struct {
HeapUsedInBytes int `json:"heap_used_in_bytes"` //
HeapUsedPercent int `json:"heap_used_percent"` //
HeapCommittedInBytes int `json:"heap_committed_in_bytes"` //
HeapMaxInBytes int `json:"heap_max_in_bytes"` //
NonHeapUsedInBytes int `json:"non_heap_used_in_bytes"` //
NonHeapCommittedInBytes int `json:"non_heap_committed_in_bytes"` //
Pools Pools `json:"pools"` //
}
type ListEVMResult ¶
type ListEVMResult struct {
ServerResponse
Result []EVMToken `json:"result"` // 返回结果
}
type ListProofResult ¶
type ListProofResult struct {
ServerResponse
Result []Proof `json:"result"` // 返回结果
}
type LoadAverage ¶
type Member ¶
type Member struct {
Address string `json:"address"` // 地址
Role string `json:"role"` // 角色
Organization string `json:"organization"` // 组织
Note string `json:"note"` // 备注
Height int `json:"height"` // 高度
Ts int `json:"ts"` // 上链时间
BlockHash string `json:"block_hash"` // 区块哈希
Index int `json:"index"` // 交易索引号
Send string `json:"send"` // 交易发起人
TxHash string `json:"tx_hash"` // 交易hash
HeightIndex int64 `json:"height_index"` // 高度索引
UserName string `json:"user_name,omitempty"` // 用户名
Phone string `json:"phone,omitempty"` // 手机号
UserIcon string `json:"user_icon,omitempty"` // 头像地址链接
AuthType int `json:"auth_type,omitempty"` // 认证类型
RealName string `json:"real_name,omitempty"` // 真实姓名
EnterpriseName string `json:"enterprise_name,omitempty"` // 企业名称
Email string `json:"email,omitempty"` // 邮箱
}
type Merges ¶
type Merges struct {
Current int `json:"current"` //
CurrentDocs int `json:"current_docs"` //
CurrentSizeInBytes int `json:"current_size_in_bytes"` //
Total int `json:"total"` //
TotalTimeInMillis int `json:"total_time_in_millis"` //
TotalDocs int `json:"total_docs"` //
TotalSizeInBytes int64 `json:"total_size_in_bytes"` //
TotalStoppedTimeInMillis int `json:"total_stopped_time_in_millis"` //
TotalThrottledTimeInMillis int `json:"total_throttled_time_in_millis"` //
TotalAutoThrottleInBytes int64 `json:"total_auto_throttle_in_bytes"` //
}
type Node ¶
type Node struct {
Timestamp int64 `json:"timestamp"` //
Name string `json:"name"` //
TransportAddress string `json:"transport_address"` //
Host string `json:"host"` //
IP string `json:"ip"` //
Roles []string `json:"roles"` //
Attributes Attributes `json:"attributes"` //
Indices Indices `json:"indices"` // 索引
Os Os `json:"os"` // 系统
Jvm Jvm `json:"jvm"` // java虚拟机
HTTP HTTP `json:"http"` //
}
type NodesCount ¶
type Organization ¶
type Pools ¶
type Pools struct {
PoolsYoung PoolsYoung `json:"young"` //
Survivor Survivor `json:"survivor"` //
PoolsOld PoolsOld `json:"old"` //
}
type PoolsYoung ¶
type Proof ¶
type Proof struct {
Basehash string `json:"basehash"` // 增量存证依赖的主hash
EvidenceName string `json:"evidenceName"` // 存证名称
Prehash string `json:"prehash"` // 增量存证前一个hash
ProofBlockHash string `json:"proof_block_hash"` // 区块hash
ProofBlockTime int `json:"proof_block_time"` // 上链时间
ProofData string `json:"proof_data"` // 存证数据
ProofDeleted string `json:"proof_deleted"` // 删除存证交易hash
ProofDeletedFlag bool `json:"proof_deleted_flag"` // 删除标志
ProofDeletedNote string `json:"proof_deleted_note"` // 删除备注
ProofHeight int `json:"proof_height"` // 存证高度
ProofHeightIndex int `json:"proof_height_index"` // 存证高度索引
ProofID string `json:"proof_id"` // 存证id
ProofNote string `json:"proof_note"` // 存证备注
ProofOrganization string `json:"proof_organization"` // 组织
ProofOriginal string `json:"proof_original"` // 来源
ProofSender string `json:"proof_sender"` // 存证发起者
ProofTxHash string `json:"proof_tx_hash"` // 交易哈希
SourceHash interface{} `json:"source_hash"` // 依赖交易哈希
UpdateHash string `json:"update_hash"` // 更新依赖主哈希
UpdateVersion int `json:"update_version"` // 更新版本
Version int `json:"version"` // 存证版本
UserAuthType int `json:"user_auth_type,omitempty"` // 用户认证类型
UserEmail string `json:"user_email,omitempty"` // 用户邮箱
UserIcon string `json:"user_icon,omitempty"` // 用户头像链接地址
UserName string `json:"user_name,omitempty"` // 用户名
UserPhone string `json:"user_phone,omitempty"` // 用户手机号
UserRealName string `json:"user_real_name,omitempty"` // 用户真是名称
UserEnterpriseName string `json:"user_enterprise_name,omitempty"` // 用户企业名称
}
type QFetch ¶
type QFetch struct {
FetchSource bool `json:"fetch_source"` // 是否获取
Keys []string `json:"keys"` // 字段名列表
}
QFetch 获取
type QMatch ¶
type QMatch struct {
Key string `json:"key"` // 字段名
Value interface{} `json:"value"` // 值
}
QMatch key
type QMultiMatch ¶
type QMultiMatch struct {
Keys []string `json:"keys"` // 字段名列表
Value interface{} `json:"value"` // 值
}
QMultiMatch keys
type QRange ¶
type QRange struct {
Key string `json:"key"` // 字段名
RStart interface{} `json:"start"` // 大于等于
REnd interface{} `json:"end"` // 小于等于
GT interface{} `json:"gt"` // 大于
LT interface{} `json:"lt"` // 小于
}
QRange range
type Query ¶
type Query struct {
Page *QPage `json:"page"` // 分页
Size *QSize `json:"size"` // 大小
Sort []*QSort `json:"sort"` // 排序
Range []*QRange `json:"range"` // 范围
Match []*QMatch `json:"match"` // 且匹配
MatchOne []*QMatch `json:"match_one"` // 或匹配
MultiMatch []*QMultiMatch `json:"multi_match"` // 多字段匹配
Filter []*QMatch `json:"filter"` // 过滤
Not []*QMatch `json:"not"` // 非匹配
Fetch *QFetch `json:"fetch"` // 获取字段
}
Query queryPara
type QueryCache ¶
type QueryCache struct {
MemorySizeInBytes int `json:"memory_size_in_bytes"` //
TotalCount int `json:"total_count"` //
HitCount int `json:"hit_count"` //
MissCount int `json:"miss_count"` //
CacheSize int `json:"cache_size"` //
CacheCount int `json:"cache_count"` //
Evictions int `json:"evictions"` //
}
type RequestCache ¶
type Segments ¶
type Segments struct {
Count int `json:"count"` //
MemoryInBytes int `json:"memory_in_bytes"` //
TermsMemoryInBytes int `json:"terms_memory_in_bytes"` //
StoredFieldsMemoryInBytes int `json:"stored_fields_memory_in_bytes"` //
TermVectorsMemoryInBytes int `json:"term_vectors_memory_in_bytes"` //
NormsMemoryInBytes int `json:"norms_memory_in_bytes"` //
PointsMemoryInBytes int `json:"points_memory_in_bytes"` //
DocValuesMemoryInBytes int `json:"doc_values_memory_in_bytes"` //
IndexWriterMemoryInBytes int `json:"index_writer_memory_in_bytes"` //
VersionMapMemoryInBytes int `json:"version_map_memory_in_bytes"` //
FixedBitSetMemoryInBytes int `json:"fixed_bit_set_memory_in_bytes"` //
MaxUnsafeAutoIDTimestamp int `json:"max_unsafe_auto_id_timestamp"` //
FileSizes FileSizes `json:"file_sizes"` //
}
type ServerResponse ¶
type ServerResponse struct {
ID uint64 `json:"id"` // 请求标识
Result interface{} `json:"result"` // 返回结果
Error interface{} `json:"error"` // 错误描述
}
type ServerStatus ¶
type ServerStatus struct {
Version string `json:"version"` // 版本
SyncSeq int64 `json:"sync_seq"` // 同步序列高度
ConvSeq int64 `json:"conv_seq"` // 转换序列高度
Title string `json:"title"` // 标题
Coin string `json:"coin"` // 币名称
}
ServerStatus 当前服务状态信息
type Status ¶
type Status struct {
Server *ServerStatus `json:"server"` // 服务状态
Chain *ChainStatus `json:"chain"` // 链状态
ES *EsStatus `json:"es"` // ElasticSearch状态
}
Status 服务状态详细信息
type SubTermsAgges ¶
type Template ¶
type Template struct {
TemplateBlockHash string `json:"template_block_hash"` // 区块哈希
TemplateBlockTime int `json:"template_block_time"` // 上链时间
TemplateData string `json:"template_data"` // 模板数据
TemplateDeleted string `json:"template_deleted"` // 删除交易哈希
TemplateDeletedFlag bool `json:"template_deleted_flag"` // 删除标志
TemplateDeletedNote string `json:"template_deleted_note"` // 删除备注
TemplateHeight int `json:"template_height"` // 高度
TemplateHeightIndex int `json:"template_height_index"` // 高度索引
TemplateID string `json:"template_id"` // 模板id
TemplateName string `json:"template_name"` // 模板名称
TemplateOrganization string `json:"template_organization"` // 组织
TemplateSender string `json:"template_sender"` // 交易发送人
TemplateTxHash string `json:"template_tx_hash"` // 交易哈希
}
type TermsAgg ¶
type TermsAgg struct {
Count int64 `json:"count"` // 数量
TermsAggKey string `json:"termsAggKey"` // 聚合键值
SubTermsAgges []SubTermsAgges `json:"subTermsAgges"` // 子聚合
}
type VolunteerStats ¶
type VolunteerStatsResult ¶
type VolunteerStatsResult struct {
ServerResponse
Result VolunteerStats `json:"result"` // 返回结果
}
Click to show internal directories.
Click to hide internal directories.