handler

package
v1.6.17 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReadOnlineConnections = &SHandlerError{"read online connections"}
	ErrReadConnections       = &SHandlerError{"read connections"}
	ErrGetAllConnections     = &SHandlerError{"get all connections"}
	ErrGetPublicKey          = &SHandlerError{"get public key"}
	ErrGetSettingsHLS        = &SHandlerError{"get settings hls"}
)

Functions

func AboutPage

func AboutPage(pLogger logger.ILogger, pCfg config.IConfig) http.HandlerFunc

func ErrorPage

func ErrorPage(pLogger logger.ILogger, pCfg config.IConfig, pTitle, pMessage string) http.HandlerFunc

func FriendsPage

func FriendsPage(
	pCtx context.Context,
	pLogger logger.ILogger,
	pCfg config.IConfig,
	pHlsClient hls_client.IClient,
) http.HandlerFunc

func HandleIncomingListHTTP added in v1.6.17

func HandleIncomingListHTTP(pLogger logger.ILogger, pCfg config.IConfig, pStgPath string) http.HandlerFunc

func HandleIncomingLoadHTTP added in v1.6.17

func HandleIncomingLoadHTTP(
	pCtx context.Context,
	pLogger logger.ILogger,
	pStgPath string,
	pHlsClient hls_client.IClient,
) http.HandlerFunc

func IndexPage

func IndexPage(pLogger logger.ILogger, pCfg config.IConfig) http.HandlerFunc

func NotFoundPage

func NotFoundPage(pLogger logger.ILogger, pCfg config.IConfig) http.HandlerFunc

func SettingsPage

func SettingsPage(
	pCtx context.Context,
	pLogger logger.ILogger,
	pWrapper config.IWrapper,
	pHlsClient hls_client.IClient,
) http.HandlerFunc

func StoragePage

func StoragePage(
	pCtx context.Context,
	pLogger logger.ILogger,
	pCfg config.IConfig,
	pHlsClient hls_client.IClient,
) http.HandlerFunc

Types

type SHandlerError added in v1.6.8

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

func (*SHandlerError) Error added in v1.6.8

func (err *SHandlerError) Error() string

Jump to

Keyboard shortcuts

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