server

package
v0.0.0-...-6a573a6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2016 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeMetrics

func InitializeMetrics(options *Options)

InitializeMetrics and export metrics.

Types

type Options

type Options struct {
	DnsMasqPort           int
	DnsMasqAddr           string
	DnsMasqPollIntervalMs int

	PrometheusAddr      string
	PrometheusPort      int
	PrometheusPath      string
	PrometheusNamespace string
	PrometheusSubsystem string
}

Options for the daemon

func NewOptions

func NewOptions() *Options

NewOptions creates a new options struct with default values.

type Server

type Server interface {
	Run(options *Options)
}

Server that runs the dnsmasq-metrics daemon.

func NewServer

func NewServer() Server

NewServer creates a new server instance

Jump to

Keyboard shortcuts

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