Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "api_admin.yaml"
Variables ¶
View Source
var Secret = ""
Functions ¶
func IsNewInstalled ¶ added in v1.2.7
func IsNewInstalled() bool
Types ¶
type APIConfig ¶
type APIConfig struct {
OldRPC struct {
Endpoints []string `yaml:"endpoints"`
DisableUpdate bool `yaml:"disableUpdate"`
} `yaml:"rpc,omitempty"`
RPCEndpoints []string `yaml:"rpc.endpoints,flow" json:"rpc.endpoints"`
RPCDisableUpdate bool `yaml:"rpc.disableUpdate" json:"rpc.disableUpdate"`
NodeId string `yaml:"nodeId"`
Secret string `yaml:"secret"`
}
APIConfig API配置
type SimpleDBConfig ¶ added in v1.3.9
type SimpleDBConfig struct {
User string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"database"`
Host string `yaml:"host"`
BoolFields []string `yaml:"boolFields,omitempty"`
}
func (*SimpleDBConfig) GenerateOldConfig ¶ added in v1.3.9
func (this *SimpleDBConfig) GenerateOldConfig(targetFile string) error
Click to show internal directories.
Click to hide internal directories.