webui

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

Option sets various options for NewServer()

func WithQuiet

func WithQuiet() Option

WithQuiet silences default logging output.

func WithTLS

func WithTLS(cs *utils.CertStorage) Option

WithTLS sets TLS Credentials

type Server

type Server struct {
	CertStorage *utils.CertStorage
	// contains filtered or unexported fields
}

Server is the main GUI server

func NewServer

func NewServer(cfg *ServerConfig, opts ...Option) *Server

NewServer creates a new GUI server instance

func (*Server) ServeMultiPort added in v1.3.0

func (s *Server) ServeMultiPort(ports []string) error

ServeMultiPort creates listeners for multiple address specifications and serves on all of them simultaneously. This supports listening on multiple addresses.

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown gracefully shuts down the server

type ServerConfig

type ServerConfig struct {
	Gateways      []string // S3 API gateways
	AdminGateways []string // Admin API gateways (defaults to Gateways if empty)
	Region        string
	CORSOrigin    string
}

ServerConfig holds the server configuration

Jump to

Keyboard shortcuts

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