handler

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReadConnections       = &SHandlerError{"read connections"}
	ErrReadOnlineConnections = &SHandlerError{"read online connections"}
	ErrGetAllConnections     = &SHandlerError{"get all connections"}
	ErrGetSettings           = &SHandlerError{"get settings"}
	ErrGetPublicKey          = &SHandlerError{"get public key"}
	ErrUnknownMessageType    = &SHandlerError{"unknown message type"}
	ErrUnwrapFile            = &SHandlerError{"unwrap file"}
	ErrHasNotWritableChars   = &SHandlerError{"had not writable chars"}
	ErrMessageNull           = &SHandlerError{"message null"}
	ErrUndefinedPublicKey    = &SHandlerError{"undefined public key"}
	ErrGetFriends            = &SHandlerError{"get friends"}
	ErrLenMessageGtLimit     = &SHandlerError{"len message > limit"}
	ErrGetMessageLimit       = &SHandlerError{"get message limit"}
	ErrPushMessage           = &SHandlerError{"push message"}
	ErrReadFile              = &SHandlerError{"read file"}
	ErrReadFileSize          = &SHandlerError{"read file size"}
	ErrGetFormFile           = &SHandlerError{"get form file"}
	ErrUploadFile            = &SHandlerError{"upload file"}
)

Functions

func AboutPage

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

func ErrorPage added in v1.6.0

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

func FriendsChatPage

func FriendsChatPage(
	pCtx context.Context,
	pLogger logger.ILogger,
	pCfg config.IConfig,
	pDB database.IKVDatabase,
) http.HandlerFunc

func FriendsChatWS

func FriendsChatWS(pBroker msgbroker.IMessageBroker) func(pWS *websocket.Conn)

func FriendsPage

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

func FriendsUploadPage

func FriendsUploadPage(
	pCtx context.Context,
	pLogger logger.ILogger,
	pCfg config.IConfig,
) http.HandlerFunc

func HandleIncomigHTTP

func HandleIncomigHTTP(
	pCtx context.Context,
	pLogger logger.ILogger,
	pCfg config.IConfig,
	pDB database.IKVDatabase,
	pBroker msgbroker.IMessageBroker,
) 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) 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