config

package
v0.0.0-...-bd40a71 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: BSD-3-Clause Imports: 8 Imported by: 54

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug bool
	Addr  string
)

Functions

func Context

func Context(ctx context.Context, conf ini.File, service string) context.Context

func ForContext

func ForContext(ctx context.Context) ini.File

func GetOrigin

func GetOrigin(conf ini.File, svc string, external bool) string

func LoadConfig

func LoadConfig(defaultAddr string) ini.File

Loads the application configuration, reads options from the command line, and initializes some internals based on these results.

func Middleware

func Middleware(conf ini.File, service string) func(next http.Handler) http.Handler

func ServiceName

func ServiceName(ctx context.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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