handlers

package
v0.2.430 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: GPL-2.0, GPL-3.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServicer

type AuthServicer interface {
	AuthLogin(message event.LoginEvent) (resp event.LoginResponse, err error)
	AuthLogout() error
}

type ClientNodeStreamer

type ClientNodeStreamer interface {
	ClientStream(nodeId string, path string, data any) (_ []byte, err error)
	IsRunning() bool
}

type StaticController

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

func NewStaticController

func NewStaticController(
	isFirstRun bool,
	staticFolder StaticFolderOpener,
) *StaticController

func (*StaticController) GetIndex

func (c *StaticController) GetIndex(ctx echo.Context) error

func (*StaticController) GetStaticFile

func (c *StaticController) GetStaticFile(ctx echo.Context, filePath string) error

type StaticFolderOpener

type StaticFolderOpener interface {
	Open(name string) (fs.File, error)
}

type WSController

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

func NewWSController

func NewWSController(
	auth AuthServicer,
	clientNode ClientNodeStreamer,
) *WSController

func (*WSController) WebsocketUpgrade

func (c *WSController) WebsocketUpgrade(ctx echo.Context) (err error)

Jump to

Keyboard shortcuts

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