appfx

package module
v0.0.0-...-0e0d31a Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 27 Imported by: 0

README

appfx

Opinionated application configuration with Uber.Fx

Configuration

Use github.com/uber-go/config for config provisioning. Example:

type config struct {
	Name string
}

func setupHandler(config config.Provider) (http.Handler, error) {
	var cfg config
	if err := config.Get("section").Populate(&cfg); err != nil {
		return nil, err
	}
..................
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(

	configOptions,
	otelOptions,
	loggingOptions,
	routerOptions,
	fx.Provide(appToResource),
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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