cmd

package
v0.0.0-...-acc543f Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewClient

func NewClient() *resty.Client

Creates resty.Client with the given settings to use with prometheus.

func NewRouter

func NewRouter(
	logger *zap.Logger,
	statsd *statsd.Client,
	config *statsd2.Config,
	base *handler.Handler,
	pinsHandler *handler.PinsHandler,
	metricsHandler *exporter.MetricsHandler,
) (*echo.Echo, error)

Configure router

func Start

func Start(server *http.Server, e *echo.Echo)

Bootstrap the application run

Types

type Config

type Config struct {
	Env    env.Config     `yaml:"env"`
	Log    log.Config     `yaml:"log"`
	Http   handler.Config `yaml:"http"`
	Statsd statsd.Config  `yaml:"statsd"`
	Pi     pi.Config      `yaml:"pi"`
}

func NewConfig

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

Read Configuration

Jump to

Keyboard shortcuts

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