caddyManager

package
v0.0.0-...-cfa8106 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHttpsServerName = "gopanel"
)

Variables

This section is empty.

Functions

func InitManager

func InitManager(adminAddress config.NetAddress, panelPort string) (err error)

Types

type APPConfig

type APPConfig struct {
	ListenPort int               `json:"listenPort,omitempty"`
	Domain     []string          `json:"domain"`
	Routes     []caddyhttp.Route `json:"routes"`

	DisableSSL bool `json:"disableSSL,omitempty"`
}

type Config

type Config struct {
	Apps    map[string]interface{} `json:"apps"`
	Logging caddy.Logging          `json:"logging"`
}

type Manager

type Manager struct {
	HTTPSServerName string
	// contains filtered or unexported fields
}

func GetManager

func GetManager() *Manager

func (*Manager) AddOrUpdateApp

func (m *Manager) AddOrUpdateApp(name string, config *APPConfig) error

func (*Manager) DeleteApp

func (m *Manager) DeleteApp(name string) error

func (*Manager) IsAppExist

func (m *Manager) IsAppExist(name string) bool

func (*Manager) NotifyCaddyConfigChange

func (m *Manager) NotifyCaddyConfigChange()

func (*Manager) RegisterCaddyApp

func (m *Manager) RegisterCaddyApp(app caddyapp.CaddyApp)

type SubrouteHandle

type SubrouteHandle struct {
	Handler string              `json:"handler"`
	Routes  caddyhttp.RouteList `json:"routes"`
}

func NewSubrouteHandle

func NewSubrouteHandle(routes []caddyhttp.Route) *SubrouteHandle

Jump to

Keyboard shortcuts

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