web

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 57 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer added in v0.0.2

func NewServer(options ServerOptions) *server

Types

type SSEHub added in v0.4.0

type SSEHub struct {
	// Inbound messages from the clients.
	Broadcast chan *sse

	// Register requests from the clients.
	Register chan *sseClient

	// Unregister requests from clients.
	Unregister chan *sseClient
	// contains filtered or unexported fields
}

SSEHub maintains the set of active clients and broadcasts messages to the clients.

func NewHub added in v0.0.2

func NewHub() *SSEHub

NewHub creates new SSEHub

func (*SSEHub) Run added in v0.4.0

func (h *SSEHub) Run()

Run handles communication operations with SSEHub

type ServerConfigError added in v0.0.3

type ServerConfigError interface {
	error
	KubeconfigDefaultLocation() string
	KubeconfigMissing() bool
	BootstrapMissing() bool
}

type ServerOptions added in v0.0.3

type ServerOptions struct {
	Host       string
	Port       int32
	Kubeconfig string
}

Directories

Path Synopsis
components

Jump to

Keyboard shortcuts

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