swagger

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AAgg

type AAgg struct {
	Name           string `json:"name"`            // 聚合名
	Key            string `json:"key"`             // 聚合字段
	CollectionMode string `json:"collection_mode"` // depth_first/breadth_first
}

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 ARanges

type ARanges struct {
	Key    string    `json:"key"`    // 字段名
	Ranges []*ARange `json:"ranges"` // 范围
}

ARanges 范围

type ASize

type ASize struct {
	Size int `json:"size"` // 大小
}

ASize 大小

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 Agg

type Agg struct {
	Name   string   `json:"name"`   // 聚合名
	Metric *AMetric `json:"metric"` // 指标聚合
	Term   *AAgg    `json:"term"`   // 分桶聚合的Term聚合
	Ranges *ARanges `json:"ranges"` // 分桶聚合的Range聚合
	Subs   *ASub    `json:"sub"`    // 对聚合的嵌套操作
	Size   *ASize   `json:"size"`   // 大小
	Order  *AOrder  `json:"order"`  // 排序
}

type Attributes

type Attributes struct {
	MlMachineMemory string `json:"ml.machine_memory"` //
	MlMaxOpenJobs   string `json:"ml.max_open_jobs"`  //
	MlEnabled       string `json:"ml.enabled"`        //
}

type BufferPools

type BufferPools struct {
	Direct Direct `json:"direct"` //
	Mapped Mapped `json:"mapped"` //
}

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 Classes

type Classes struct {
	CurrentLoadedCount int `json:"current_loaded_count"` //
	TotalLoadedCount   int `json:"total_loaded_count"`   //
	TotalUnloadedCount int `json:"total_unloaded_count"` //
}

type ClientRequest

type ClientRequest struct {
	Method string      `json:"method,omitempty"` // 方法
	Params interface{} `json:"params"`           // 参数
	ID     uint64      `json:"id"`               // 请求标识
}

type ClientRequestNil

type ClientRequestNil struct {
	Method string `json:"method" label:"方法"` // 方法
	ID     uint64 `json:"id"`                // 请求标识
}

ClientRequestNil swagger:parameters

type Collectors

type Collectors struct {
	Young GcYoung `json:"young"` //
	Old   GcOld   `json:"old"`   //
}

type Completion

type Completion struct {
	SizeInBytes int `json:"size_in_bytes"` //
}

type Direct

type Direct struct {
	Count                int `json:"count"`                   //
	UsedInBytes          int `json:"used_in_bytes"`           //
	TotalCapacityInBytes int `json:"total_capacity_in_bytes"` //
}

type Docs

type Docs struct {
	Count   int `json:"count"`   //
	Deleted int `json:"deleted"` //
}

type DonationStatItem

type DonationStatItem struct {
	Name  string `json:"name"`            // 名称
	Total int64  `json:"total,omitempty"` // 总合
	Count int    `json:"count"`           // 数量
}

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 Fielddata

type Fielddata struct {
	MemorySizeInBytes int `json:"memory_size_in_bytes"` //
	Evictions         int `json:"evictions"`            //
}

type FileSizes

type FileSizes struct {
}

type Flush

type Flush struct {
	Total             int `json:"total"`                //
	TotalTimeInMillis int `json:"total_time_in_millis"` //
}

type Gc

type Gc struct {
	Collectors Collectors `json:"collectors"` //
}

type GcOld

type GcOld struct {
	CollectionCount        int `json:"collection_count"`          //
	CollectionTimeInMillis int `json:"collection_time_in_millis"` //
}

type GcYoung

type GcYoung struct {
	CollectionCount        int `json:"collection_count"`          //
	CollectionTimeInMillis int `json:"collection_time_in_millis"` //
}

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 HTTP

type HTTP struct {
	CurrentOpen int `json:"current_open"` //
	TotalOpened int `json:"total_opened"` //
}

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 Jvm

type Jvm struct {
	Timestamp      int64       `json:"timestamp"`        //
	UptimeInMillis int         `json:"uptime_in_millis"` //
	Mem            JvmMem      `json:"mem"`              //
	Threads        Threads     `json:"threads"`          //
	Gc             Gc          `json:"gc"`               //
	BufferPools    BufferPools `json:"buffer_pools"`     //
	Classes        Classes     `json:"classes"`          //
}

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 LoadAverage struct {
	OneM  float64 `json:"1m"`  //
	FiveM float64 `json:"5m"`  //
	One5M float64 `json:"15m"` //
}

type Mapped

type Mapped struct {
	Count                int `json:"count"`                   //
	UsedInBytes          int `json:"used_in_bytes"`           //
	TotalCapacityInBytes int `json:"total_capacity_in_bytes"` //
}

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 NodesCount struct {
	Total      int `json:"total"`      // 总计
	Successful int `json:"successful"` // 正常数量
	Failed     int `json:"failed"`     // 不正常数量
}

type Organization

type Organization struct {
	Organization string `json:"organization"` // 组织名
	Note         string `json:"note"`         // 备注
	Count        int    `json:"count"`        // 数量
}

type Os

type Os struct {
	Timestamp int64 `json:"timestamp"` //
	CPU       CPU   `json:"cpu"`       //
	OsMem     OsMem `json:"mem"`       //
	Swap      Swap  `json:"swap"`      //
}

type OsMem

type OsMem struct {
	TotalInBytes int64 `json:"total_in_bytes"` //
	FreeInBytes  int64 `json:"free_in_bytes"`  //
	UsedInBytes  int64 `json:"used_in_bytes"`  //
	FreePercent  int   `json:"free_percent"`   //
	UsedPercent  int   `json:"used_percent"`   //
}

type Pools

type Pools struct {
	PoolsYoung PoolsYoung `json:"young"`    //
	Survivor   Survivor   `json:"survivor"` //
	PoolsOld   PoolsOld   `json:"old"`      //
}

type PoolsOld

type PoolsOld struct {
	UsedInBytes     int `json:"used_in_bytes"`      //
	MaxInBytes      int `json:"max_in_bytes"`       //
	PeakUsedInBytes int `json:"peak_used_in_bytes"` //
	PeakMaxInBytes  int `json:"peak_max_in_bytes"`  //
}

type PoolsYoung

type PoolsYoung struct {
	UsedInBytes     int `json:"used_in_bytes"`      //
	MaxInBytes      int `json:"max_in_bytes"`       //
	PeakUsedInBytes int `json:"peak_used_in_bytes"` //
	PeakMaxInBytes  int `json:"peak_max_in_bytes"`  //
}

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 QPage

type QPage struct {
	Size   int `json:"size"`   // 大小
	Number int `json:"number"` // 当前页数
}

QPage page

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 QSize

type QSize struct {
	Size int `json:"size"` // 大小
}

type QSort

type QSort struct {
	Key       string `json:"key"`       // 字段名
	Ascending bool   `json:"ascending"` // 是否递增
}

QSort sort

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 Recovery

type Recovery struct {
	CurrentAsSource      int `json:"current_as_source"`       //
	CurrentAsTarget      int `json:"current_as_target"`       //
	ThrottleTimeInMillis int `json:"throttle_time_in_millis"` //
}

type Refresh

type Refresh struct {
	Total             int `json:"total"`                //
	TotalTimeInMillis int `json:"total_time_in_millis"` //
	Listeners         int `json:"listeners"`            //
}

type RequestCache

type RequestCache struct {
	MemorySizeInBytes int `json:"memory_size_in_bytes"` //
	Evictions         int `json:"evictions"`            //
	HitCount          int `json:"hit_count"`            //
	MissCount         int `json:"miss_count"`           //
}
type Search struct {
	Agg   *Agg   `json:"agg"`   // 聚合
	Query *Query `json:"query"` // 查询
}

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 Store

type Store struct {
	SizeInBytes int `json:"size_in_bytes"` //
}

type SubTermsAgges

type SubTermsAgges struct {
	SubTermsAggKey string `json:"subTermsAggKey"` // 子聚合键值
	Count          int64  `json:"count"`          // 聚合数量
}

type Survivor

type Survivor struct {
	UsedInBytes     int `json:"used_in_bytes"`      //
	MaxInBytes      int `json:"max_in_bytes"`       //
	PeakUsedInBytes int `json:"peak_used_in_bytes"` //
	PeakMaxInBytes  int `json:"peak_max_in_bytes"`  //
}

type Swap

type Swap struct {
	TotalInBytes int `json:"total_in_bytes"` //
	FreeInBytes  int `json:"free_in_bytes"`  //
	UsedInBytes  int `json:"used_in_bytes"`  //
}

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 Threads

type Threads struct {
	Count     int `json:"count"`      //
	PeakCount int `json:"peak_count"` //
}

type Translog

type Translog struct {
	Operations             int `json:"operations"`                //
	SizeInBytes            int `json:"size_in_bytes"`             //
	UncommittedOperations  int `json:"uncommitted_operations"`    //
	UncommittedSizeInBytes int `json:"uncommitted_size_in_bytes"` //
}

type VolunteerStats

type VolunteerStats struct {
	TermsAgges []TermsAgg `json:"termsAgges"` // 聚合
	Count      int64      `json:"count"`      // 总数
}

type VolunteerStatsResult

type VolunteerStatsResult struct {
	ServerResponse
	Result VolunteerStats `json:"result"` // 返回结果
}

type Warmer

type Warmer struct {
	Current           int `json:"current"`              //
	Total             int `json:"total"`                //
	TotalTimeInMillis int `json:"total_time_in_millis"` //
}

Jump to

Keyboard shortcuts

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