config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"config",
	fx.Provide(GetConfig),
	fx.Provide(func(cfg Config) nginx.Config {
		return nginx.Config{
			ConfigPath:     cfg.Nginx.Location,
			ConfigTemplate: cfg.Nginx.Template,
		}
	}),
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Nginx Nginx `yaml:"nginx"`
}

func GetConfig

func GetConfig() Config

type Nginx

type Nginx struct {
	Location string `yaml:"location"`
	Template string `yaml:"template"`
}

Jump to

Keyboard shortcuts

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