config

package
v0.0.0-...-348a65b Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = &Config{
	LogLevel:           "debug",
	GameDataConfigPath: "resources",
	Server:             "http://127.0.0.1:8080",
	AccountName:        "HkRpgRoBotGo",
	Amount:             10,
	Conc:               10,
	Dispatch:           "http://127.0.0.1:8080/query_dispatch?version=OSPRODWin1.5.0&t=114514&language_type=1&platform_type=3&channel_id=1&sub_channel_id=1&is_new_format=1",
	GateServer:         "?version=OSPRODWin1.5.0&t=114514&uid=114514&language_type=1&platform_type=3&dispatch_seed=3a57430d8d&channel_id=1&sub_channel_id=1&is_need_url=1&account_type=1&account_uid=114514",
}
View Source
var FileNotExist = errors.New("config file not found")

Functions

func LoadConfig

func LoadConfig() error

Types

type Config

type Config struct {
	LogLevel           string `json:"logLevel"`
	GameDataConfigPath string `toml:"gameDataConfigPath"`
	Server             string `json:"server"`
	AccountName        string `json:"accountName"`
	Amount             int    `json:"amount"`
	Conc               int    `json:"conc"`
	Dispatch           string `json:"dispatch"`
	GateServer         string `json:"gateServer"`
}
var CONF *Config = nil

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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