Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct { RPC struct { Endpoints []string `yaml:"endpoints" json:"endpoints"` DisableUpdate bool `yaml:"disableUpdate" json:"disableUpdate"` } `yaml:"rpc" json:"rpc"` NodeId string `yaml:"nodeId" json:"nodeId"` Secret string `yaml:"secret" json:"secret"` }
APIConfig 节点API配置
func LoadAPIConfig ¶
func NewAPIConfig ¶ added in v0.5.8
func NewAPIConfig() *APIConfig
type ClusterConfig ¶
type ClusterConfig struct { RPC struct { Endpoints []string `yaml:"endpoints" json:"endpoints"` DisableUpdate bool `yaml:"disableUpdate" json:"disableUpdate"` } `yaml:"rpc" json:"rpc"` ClusterId string `yaml:"clusterId" json:"clusterId"` Secret string `yaml:"secret" json:"secret"` }
ClusterConfig 集群配置
Click to show internal directories.
Click to hide internal directories.