v1

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HomepageOverrideItem          = "item"
	HomepageOverrideItemsBatch    = "items_batch"
	HomepageOverrideCategoryOrder = "category_order"
	HomepageOverrideItemVisible   = "item_visible"
)
View Source
const (
	ListRoute              = "route"
	ListRoutes             = "routes"
	ListFiles              = "files"
	ListMiddlewares        = "middlewares"
	ListMiddlewareTraces   = "middleware_trace"
	ListMatchDomains       = "match_domains"
	ListHomepageConfig     = "homepage_config"
	ListRouteProviders     = "route_providers"
	ListHomepageCategories = "homepage_categories"
	ListIcons              = "icons"
	ListTasks              = "tasks"
)

Variables

This section is empty.

Functions

func GetFileContent

func GetFileContent(w http.ResponseWriter, r *http.Request)

func Health added in v0.10.0

func Health(w http.ResponseWriter, r *http.Request)

func Index

func Index(w http.ResponseWriter, r *http.Request)

func ListAgents added in v0.10.0

func ListAgents(cfg config.ConfigInstance, w http.ResponseWriter, r *http.Request)

func NewAgent added in v0.10.0

func NewAgent(w http.ResponseWriter, r *http.Request)

func Reload

func SetFileContent

func SetFileContent(w http.ResponseWriter, r *http.Request)

func SetHomePageOverrides

func SetHomePageOverrides(w http.ResponseWriter, r *http.Request)

func SystemInfo added in v0.10.0

func SystemInfo(cfg config.ConfigInstance, w http.ResponseWriter, r *http.Request)

func ValidateFile

func ValidateFile(w http.ResponseWriter, r *http.Request)

func VerifyNewAgent added in v0.10.0

func VerifyNewAgent(w http.ResponseWriter, r *http.Request)

Types

type FileType

type FileType string
const (
	FileTypeConfig     FileType = "config"
	FileTypeProvider   FileType = "provider"
	FileTypeMiddleware FileType = "middleware"
)

func (FileType) GetPath

func (t FileType) GetPath(filename string) string

func (FileType) IsValid

func (t FileType) IsValid() bool

type HomepageOverrideCategoryOrderParams

type HomepageOverrideCategoryOrderParams struct {
	Which string `json:"which"`
	Value int    `json:"value"`
}

type HomepageOverrideItemParams

type HomepageOverrideItemParams struct {
	Which string              `json:"which"`
	Value homepage.ItemConfig `json:"value"`
}

type HomepageOverrideItemVisibleParams

type HomepageOverrideItemVisibleParams struct {
	Which []string `json:"which"`
	Value bool     `json:"value"`
}

type HomepageOverrideItemsBatchParams

type HomepageOverrideItemsBatchParams struct {
	Value map[string]*homepage.ItemConfig `json:"value"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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