configs

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Secret = ""

Functions

func ResetAPIConfig added in v0.1.0

func ResetAPIConfig() error

ResetAPIConfig 重置配置

Types

type APIConfig

type APIConfig struct {
	RPC struct {
		Endpoints     []string `yaml:"endpoints"`
		DisableUpdate bool     `yaml:"disableUpdate"`
	} `yaml:"rpc"`
	NodeId string `yaml:"nodeId"`
	Secret string `yaml:"secret"`
}

APIConfig API配置

func LoadAPIConfig

func LoadAPIConfig() (*APIConfig, error)

LoadAPIConfig 加载API配置

func (*APIConfig) Clone added in v0.6.4

func (this *APIConfig) Clone() *APIConfig

Clone 克隆当前配置

func (*APIConfig) WriteFile

func (this *APIConfig) WriteFile(path string) error

WriteFile 写入API配置

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL