config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App = getSettings()
)

Functions

This section is empty.

Types

type AdminConfig

type AdminConfig struct {
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Email    string `yaml:"email"`
}

type RaftConfig

type RaftConfig struct {
	StoreDir string `yaml:"storeDir"`
	PeerId   string `yaml:"peerId"`
	Address  string `yaml:"address"`
}

type Settings

type Settings struct {
	Raft    RaftConfig               `json:"raft" yaml:"raft"`
	Server  SeverConfig              `json:"server" yaml:"server"`
	Log     log.LogSettings          `json:"log" yaml:"log"`
	JWT     middleware.JWTConfig     `json:"jwt" yaml:"jwt"`
	Admin   AdminConfig              `json:"admin" yaml:"admin"`
	Monitor middleware.MonitorConfig `json:"monitor" yaml:"monitor"`
}

type SeverConfig

type SeverConfig struct {
	Port int `yaml:"port" json:"port"`
}

Jump to

Keyboard shortcuts

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