Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountOn ¶ added in v1.4.0
func MountOn(app *fiber.App, prefix string, cfg *ServerConfig) error
MountOn registers the WebUI routes on an existing Fiber app at the given path prefix. This allows hosting the WebUI on the same port as another service (e.g. the S3 API server). The prefix must start with "/" and must not be empty or just "/".
Types ¶
type Option ¶
type Option func(*Server)
Option sets various options for NewServer()
func WithPathPrefix ¶ added in v1.4.0
WithPathPrefix mounts the entire web UI under the given path prefix
func WithSocketPerm ¶ added in v1.4.1
WithSocketPerm sets the file-mode permissions applied to file-backed UNIX domain sockets after binding. It has no effect on TCP/IP or abstract namespace sockets.
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, error)
NewServer creates a new GUI server instance
func (*Server) ServeMultiPort ¶ added in v1.3.0
ServeMultiPort creates listeners for multiple address specifications and serves on all of them simultaneously. This supports listening on multiple addresses.