xvars

package
v0.0.0-...-73d6a9a Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expvar

func Expvar(cfg Config) func() xhttp.RouteMapping

Expvar exposes and http endpoint to xhttp.

func Module

func Module() fx.Option

Module constructs the xvars module receives a set of Options and apply them into a newly created config.

Types

type Config

type Config struct {
	Path string `yaml:"path"`
}

Config hold the Expvar config.

func LoadConfig

func LoadConfig(params LoadConfigParams) (Config, error)

type LoadConfigParams

type LoadConfigParams struct {
	fx.In

	Provider config.Provider `optional:"true"`
}

Jump to

Keyboard shortcuts

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