config

package
v0.0.0-...-262ee3b Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = &Config{Bind: "0.0.0.0", Port: "7000", Logdir: "logs", ShardCount: "16"}

提供默认配置,应对无配置文件的情况

Functions

func LoadConfig

func LoadConfig(cfgpath string) error

Types

type Config

type Config struct {
	Bind       string `cfg:"bind"`
	Port       string `cfg:"port"`
	Logdir     string `cfg:"logdir"`
	ShardCount string `cfg:"shardcount"`
}

Jump to

Keyboard shortcuts

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