configs

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetAPIConfig added in v0.5.6

func ResetAPIConfig() error

ResetAPIConfig 重置配置

Types

type APIConfig

type APIConfig struct {
	NodeId string `yaml:"nodeId" json:"nodeId"`
	Secret string `yaml:"secret" json:"secret"`
	// contains filtered or unexported fields
}

APIConfig API节点配置

func SharedAPIConfig

func SharedAPIConfig() (*APIConfig, error)

SharedAPIConfig 获取共享配置

func (*APIConfig) NumberId

func (this *APIConfig) NumberId() int64

NumberId 获取数字ID

func (*APIConfig) SetNumberId

func (this *APIConfig) SetNumberId(numberId int64)

SetNumberId 设置数字ID

func (*APIConfig) WriteFile

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

WriteFile 保存到文件

Jump to

Keyboard shortcuts

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