config

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogTypeStdOut = "stdout"
	LogTypeFile   = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	App struct {
		Name    string
		Version string
	}

	HTTP struct {
		Mode string
		Port string
	}

	GRPC struct {
		Port string
	}

	Log struct {
		Type       string
		Level      string
		FileName   string
		MaxSize    int
		MaxAge     int
		MaxBackups int
		Compress   bool
	}
}

func New

func New(f ...string) Config

Jump to

Keyboard shortcuts

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