cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildVersion     = "unknown"
	BuildDate        = "unknown"
	BuildHash        = "unknown"
	BuildEnvironment = "unknown"
)

Functions

func NewRootCommand

func NewRootCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) Bind added in v0.2.0

func (app *App) Bind(cmd *cobra.Command)

type Config

type Config struct {
	Exporters []Exporter
}

func ReadConfig

func ReadConfig(path string) (*Config, error)

type Exporter

type Exporter struct {
	URL string
}

type Handler

type Handler struct {
	Exporters []string
}

func (Handler) Merge

func (h Handler) Merge(w io.Writer)

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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