Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "api_node.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct { OldRPC struct { Endpoints []string `yaml:"endpoints" json:"endpoints"` DisableUpdate bool `yaml:"disableUpdate" json:"disableUpdate"` } `yaml:"rpc,omitempty" json:"rpc"` RPCEndpoints []string `yaml:"rpc.endpoints,flow" json:"rpc.endpoints"` RPCDisableUpdate bool `yaml:"rpc.disableUpdate" json:"rpc.disableUpdate"` NodeId string `yaml:"nodeId" json:"nodeId"` Secret string `yaml:"secret" json:"secret"` }
func LoadAPIConfig ¶
func NewAPIConfig ¶ added in v0.5.8
func NewAPIConfig() *APIConfig
type ClusterConfig ¶
type ClusterConfig struct { OldRPC struct { Endpoints []string `yaml:"endpoints" json:"endpoints"` DisableUpdate bool `yaml:"disableUpdate" json:"disableUpdate"` } `yaml:"rpc,omitempty" json:"rpc"` RPCEndpoints []string `yaml:"rpc.endpoints,flow" json:"rpc.endpoints"` RPCDisableUpdate bool `yaml:"rpc.disableUpdate" json:"rpc.disableUpdate"` ClusterId string `yaml:"clusterId" json:"clusterId"` Secret string `yaml:"secret" json:"secret"` }
ClusterConfig 集群配置
func LoadClusterConfig ¶ added in v1.2.7
func LoadClusterConfig() (*ClusterConfig, error)
func (*ClusterConfig) Init ¶ added in v1.2.7
func (this *ClusterConfig) Init() error
Click to show internal directories.
Click to hide internal directories.