dashboard

package
v0.0.0-...-987a61a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewDashboardHTTPReverseProxy

func NewDashboardHTTPReverseProxy(serverAddr string, transport http.RoundTripper) func(writer http.ResponseWriter, request *http.Request)

Types

type Config

type Config struct {
	Host      string `env:"DASHBOARD_HOST" envDefault:"localhost"`
	Port      string `env:"DASHBOARD_PORT" envDefault:"3000"`
	Namespace string `env:"DASHBOARD_NAMESPACE" envDefault:"devtroncd"`
}

func GetConfig

func GetConfig() (*Config, error)

type DashboardRouter

type DashboardRouter interface {
	InitDashboardRouter(router *mux.Router)
}

type DashboardRouterImpl

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

func NewDashboardRouterImpl

func NewDashboardRouterImpl(logger *zap.SugaredLogger, dashboardCfg *Config) *DashboardRouterImpl

func (DashboardRouterImpl) InitDashboardRouter

func (router DashboardRouterImpl) InitDashboardRouter(dashboardRouter *mux.Router)

Jump to

Keyboard shortcuts

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