# Functions
calc the fee of an order by id.
check provider orders, if order is end, set status=4, and set node sold=false.
decrease used resource when order en.
No description provided by the author
get node with cp and id.
get all nodes count.
get all used nodes count.
get order by order id.
get orders count by provider address.
get order list of an user.
No description provided by the author
get cp info.
GetProviderCount 查询 Provider 表中的记录数量.
get all nodes' disk count.
get all active orders' total disk.
get all nodes' mem count.
get all active orders' total mem.
GetTotalResources 查询所有节点的 MemCapacity 和 DiskCapacity 总量.
No description provided by the author
IncCp 累加 GlobalStore 表中的 CpNum 字段.
accu node resource.
increase used resource when createorder.
init a gorm db with path.
create global table.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
user's active orders.
list all node by specify start and num of node.
get node list of a cp.
ListAllNodesByUser 通过用户地址查询与之相关的所有节点列表.
provider's orders.
user's orders.
No description provided by the author
list all providers with nodes.
No description provided by the author
No description provided by the author
No description provided by the author
set node avail.
No description provided by the author
set node exist.
set node online.
set order appname.
set order status.
set node sold.
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author
for return json compatible.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author