runner

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunE

func RunE(parentCtx context.Context, metricsHandler metricsservice.MetricsHandler) error

func RunWithSettings

func RunWithSettings(ctx context.Context, service *metricsservice.Server, clientSettings Settings) error

Types

type Settings

type Settings struct {
	ServerPort  int    `envconfig:"SERVER_PORT" default:"9966"`
	ServiceName string `envconfig:"SERVICE_NAME" default:"metrics"`
}

func NewSettings

func NewSettings() Settings

Jump to

Keyboard shortcuts

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