webserver

package
v0.0.0-...-cca735f Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadUISettings

func LoadUISettings(filePath string) (map[string]interface{}, error)

LoadUISettings is needed if uiData loading moves here

func RegisterHandlers

func RegisterHandlers(
	router *gin.Engine,
	config AppConfig,
	uiData map[string]interface{},
	uiSettingsFile string,
	apiPrefix string,
)

RegisterHandlers sets up all web-related routes and handlers.

Types

type AppConfig

type AppConfig struct {
	Server struct {
		Entry string `yaml:"entry"`
		Mode  string // Added Mode field

	}
}

AppConfig holds application configuration read from config.yaml

func LoadAppConfig

func LoadAppConfig(filePath string) (AppConfig, error)

LoadAppConfig is needed if AppConfig definition stays here and is used by RegisterHandlers Alternatively, pass individual config values or define a specific struct. For now, we assume AppConfig is defined/passed from main.

Jump to

Keyboard shortcuts

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