wui

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a web UI server for displaying benchmark results.

func New

func New(data *aggregate.Realtime) *Server

New creates a new web UI server with the given benchmark data.

func (*Server) Address

func (s *Server) Address() string

Address returns the address the server is listening on.

func (*Server) OpenBrowser

func (s *Server) OpenBrowser() error

OpenBrowser attempts to open the default browser to the server address.

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown gracefully shuts down the server.

func (*Server) Start

func (s *Server) Start() (string, error)

Start starts the web server on an automatically assigned port. Returns the address the server is listening on.

func (*Server) Update

func (s *Server) Update(data *aggregate.Realtime)

Update the data.

func (*Server) WaitForKeypress

func (s *Server) WaitForKeypress()

WaitForKeypress blocks until the user presses Enter.

func (*Server) WithPoll

func (s *Server) WithPoll(updates chan<- aggregate.UpdateReq)

WithPoll the data will register a pollers

Jump to

Keyboard shortcuts

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