web

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: GPL-3.0 Imports: 10 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 {
	DB         *gorm.DB
	ListenAddr string
}

Config holds the UI server configuration

type UIServer

type UIServer struct {
	SessionChan chan *core.ProxySessionRow
	ApiHandler  *api.ApiHandler
	// contains filtered or unexported fields
}

UIServer represents the UI server

func NewUIServer

func NewUIServer(config *Config) *UIServer

NewUIServer creates a new UI server instance

func (*UIServer) SetupRoutes

func (s *UIServer) SetupRoutes() http.Handler

SetupRoutes configures all UI routes

func (*UIServer) Shutdown

func (s *UIServer) Shutdown() error

Shutdown gracefully shuts down the UI server

func (*UIServer) Start

func (s *UIServer) Start() error

Start starts the UI server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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