Documentation ¶
Index ¶
Constants ¶
View Source
const ( PsMsgTypeNode = "node" PsMsgTypeOrder = "order" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ControlCommonResult ¶
ControlCommonResult
type ControlPaginate ¶
type ControlPaginate struct { Total int `json:"total"` Current int `json:"current"` PageSize int `json:"pageSize"` }
ControlPaginate
type NodeInfo ¶
type NodeOrder ¶
type NodeOrder struct { Uuid string `json:"uuid"` Wallet string `json:"wallet"` ServerCid string `json:"server_cid"` Port int `json:"port"` IsHeart bool `json:"is_heart"` }
func (*NodeOrder) ToProviderConfig ¶
ToProviderConfig 解析config
type ProviderConfig ¶
type ProviderConfig struct { CertPem string `json:"cert_pem"` KeyPem string `json:"key_pem"` CaPem string `json:"ca_pem"` CertConfig *certificate.BasicCertConf }
ProviderConfig provider配置
func (*ProviderConfig) String ¶
func (a *ProviderConfig) String() string
type PsMessage ¶
type PsMessage struct { Type string `json:"type"` // node, order Data interface{} `json:"data"` }
func (*PsMessage) ToNodeOrder ¶
ToNodeOrder 转换为节点订单信息
type Resource ¶
type StatusText ¶
type StatusText string
StatusText Define status text
func (StatusText) String ¶
func (t StatusText) String() string
Click to show internal directories.
Click to hide internal directories.