panel

package
v1.6.3-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-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 Config

type Config struct {
	LogConfig          *LogConfig     `mapstructure:"Log"`
	DnsConfigPath      string         `mapstructure:"DnsConfigPath"`
	InboundConfigPath  string         `mapstructure:"InboundConfigPath"`
	OutboundConfigPath string         `mapstructure:"OutboundConfigPath"`
	RouteConfigPath    string         `mapstructure:"RouteConfigPath"`
	NodesConfig        []*NodesConfig `mapstructure:"Nodes"`
}

type LogConfig

type LogConfig struct {
	Level      string `mapstructure:"Level"`
	AccessPath string `mapstructure:"AccessPath"`
	ErrorPath  string `mapstructure:"ErrorPath"`
}

type NodesConfig

type NodesConfig struct {
	PanelType        string             `mapstructure:"PanelType"`
	ApiConfig        *api.Config        `mapstructure:"ApiConfig"`
	ControllerConfig *controller.Config `mapstructure:"ControllerConfig"`
}

type Panel

type Panel struct {
	Server  *core.Instance
	Service []service.Service
	Running bool
	// contains filtered or unexported fields
}

Panel Structure

func New

func New(panelConfig *Config) *Panel

func (*Panel) Close

func (p *Panel) Close()

Close the panel

func (*Panel) Start

func (p *Panel) Start()

Start the panel

Jump to

Keyboard shortcuts

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