app

package
v0.0.0-...-4fbd946 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Logger                *zap.Logger
	RestConfig            *rest.Config
	PrometheusRegistry    PrometheusRegistry
	ServiceNamespace      string
	ServiceName           string
	ServiceTargetPortName string
	InterceptIP           string
	InterceptPort         int32
	ResyncPeriod          time.Duration
	AuxListenOn           string
	Debug                 bool
}

func NewFromFlags

func NewFromFlags(flagset *flag.FlagSet, arguments []string) (*App, error)

func (*App) Run

func (a *App) Run(ctx context.Context) error

type AuxServer

type AuxServer struct {
	Logger   *zap.Logger
	Addr     string // TCP address to listen on, ":http" if empty
	Gatherer prometheus.Gatherer
	Debug    bool
}

func (*AuxServer) Run

func (a *AuxServer) Run(ctx context.Context) error

type PrometheusRegistry

type PrometheusRegistry interface {
	prometheus.Registerer
	prometheus.Gatherer
}

Jump to

Keyboard shortcuts

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