gui_server

package
v0.0.0-...-4760111 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuiConfig

type GuiConfig struct {
	ApiUrl      string
	Environment string
}

Not yet exposed via YAML and env vars on purpose. All of those are autoconfigured

type GuiServerConfig

type GuiServerConfig struct {
	// Port on which the server is exposed
	Port uint32 `yaml:"port" envconfig:"kuma_gui_server_port"`
	// URL of the Api Server that requests with /api prefix will be redirected to. By default autoconfigured to http://locahost:port_of_api_server
	ApiServerUrl string `yaml:"apiServerUrl" envconfig:"kuma_gui_server_api_server_url"`
	// Config of the GUI itself
	GuiConfig *GuiConfig `yaml:"-"` // DEPRECATED, will be removed when GUI is switched to use /api URL
}

Web GUI Server configuration

func DefaultGuiServerConfig

func DefaultGuiServerConfig() *GuiServerConfig

func (*GuiServerConfig) Sanitize

func (g *GuiServerConfig) Sanitize()

func (*GuiServerConfig) Validate

func (g *GuiServerConfig) Validate() error

Jump to

Keyboard shortcuts

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