config

package
v0.0.0-...-17a7386 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server struct {
		Address  string
		APIKey   string
		Rate     uint32
		DingAuth string
	}
	Redis struct {
		Address  string
		Database int
		Password string
	}
	Log struct {
		Path            string
		MaxAge          time.Duration
		MaxRotationSize int64
	}
}

func Load

func Load(currentPath, fileName string) *Config

Jump to

Keyboard shortcuts

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