web

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(logger log.Logger, o *Options) *Handler

func (*Handler) ApplyConfig

func (h *Handler) ApplyConfig(conf *config.Config, tmpl *template.Template) error

ApplyConfig updates the config field of the Handler struct

func (*Handler) Ready added in v1.3.0

func (h *Handler) Ready()

Ready sets Handler to be ready.

func (*Handler) Reload added in v1.3.0

func (h *Handler) Reload() <-chan chan error

Reload returns the receive-only channel that signals configuration reload requests.

func (*Handler) Run

func (h *Handler) Run(ctx context.Context) error

Run serves the HTTP endpoints.

type Options

type Options struct {
	ListenAddress   string
	EnableWebUI     bool
	EnableLifecycle bool
	Version         *VersionInfo
	Flags           map[string]string
}

Options for the web Handler.

type VersionInfo

type VersionInfo = apiv1.VersionInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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