routes

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressTable

type AddressTable interface {
	Lookup(hostname string) []string
	GetAllAddresses() map[string][]string
	IsWarm() bool
}

type DNSRequestRecorder

type DNSRequestRecorder interface {
	RecordRequest()
}

type MetricsRecorder

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

func (*MetricsRecorder) Getter

func (m *MetricsRecorder) Getter() (float64, error)

func (*MetricsRecorder) RecordRequest

func (m *MetricsRecorder) RecordRequest()

type MetricsSender

type MetricsSender interface {
	SendDuration(string, time.Duration)
}

type Server

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

func NewServer

func NewServer(addressTable AddressTable, config *config.Config, dnsRequestRecorder DNSRequestRecorder, metricsSender MetricsSender, logger lager.Logger) *Server

func (*Server) Run

func (s *Server) Run(signals <-chan os.Signal, ready chan<- struct{}) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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