webui

package
v0.0.106 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(client versioned.Interface, updateInterval time.Duration) http.Handler

NewHandler returns an http.Handler serving the WebUI and API endpoints

Types

type Event

type Event struct {
	ID   string
	Type string
	Data []byte
}

Event represents a server-sent event for the WebUI

func (*Event) WriteTo

func (e *Event) WriteTo(w io.Writer) (int64, error)

WriteTo writes the event in Server-Sent Events format to the provided writer

Jump to

Keyboard shortcuts

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