console

package
v3.24.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OAuth oauthclient.Config `name:"oauth"`
	Mount string             `name:"mount" description:"Path on the server where the Console will be served"`
	UI    UIConfig           `name:"ui"`
}

Config is the configuration for the Console.

type Console

type Console struct {
	*component.Component
	// contains filtered or unexported fields
}

Console is the Console component.

func New

func New(c *component.Component, config Config) (*Console, error)

New returns a new Console.

func (*Console) RegisterRoutes

func (console *Console) RegisterRoutes(server *web.Server)

RegisterRoutes implements web.Registerer. It registers the Console to the web server.

type FrontendConfig

type FrontendConfig struct {
	DocumentationBaseURL   string `json:"documentation_base_url" name:"documentation-base-url" description:"The base URL for generating documentation links"`
	StatusPage             string `json:"status_page_base_url" name:"status-page-base-url" description:"The base URL for generating status page links"`
	Language               string `json:"language" name:"-"`
	SupportLink            string `json:"support_link" name:"support-link" description:"The URI that the support button will point to"`
	StackConfig            `json:"stack_config" name:",squash"`
	AccountURL             string `json:"account_url" name:"account-url" description:"The URL that points to the root of the Account"`
	DevEUIIssuingEnabled   bool   `json:"dev_eui_issuing_enabled" name:"dev-eui-issuing-enabled" description:"DevEUI issuer flag"`
	DevEUIApplicationLimit int    `json:"dev_eui_application_limit" name:"dev-eui-app-limit" description:"Limit on number of DevEUI's issued per application"`
}

FrontendConfig is the configuration for the Console frontend.

type StackConfig

type StackConfig struct {
	IS   webui.APIConfig `json:"is" name:"is"`
	GS   webui.APIConfig `json:"gs" name:"gs"`
	NS   webui.APIConfig `json:"ns" name:"ns"`
	AS   webui.APIConfig `json:"as" name:"as"`
	JS   webui.APIConfig `json:"js" name:"js"`
	EDTC webui.APIConfig `json:"edtc" name:"edtc"`
	QRG  webui.APIConfig `json:"qrg" name:"qrg"`
	GCS  webui.APIConfig `json:"gcs" name:"gcs"`
	DCS  webui.APIConfig `json:"dcs" name:"dcs"`
}

StackConfig is the configuration of the stack components.

type UIConfig

type UIConfig struct {
	webui.TemplateData `name:",squash"`
	FrontendConfig     `name:",squash"`
}

UIConfig is the combined configuration for the Console UI.

Jump to

Keyboard shortcuts

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