Documentation
¶
Overview ¶
client/registerEndpoints.go
Index ¶
- func GetCoreClient() interface{}
- func GetSessionStats() map[string]interface{}
- func InitializeClient(serverCfg *cfgType.ServerConfig) error
- func PrependDir(dir string, files []string) []string
- func RegisterEndpoints(mux *http.ServeMux)
- func RegisterPWARoutes(mux *http.ServeMux)
- func RenderTemplate(w http.ResponseWriter, data PageData, view string)
- func ShutdownClient() error
- type ClientInitError
- type PWAIcon
- type PWAManifest
- type PWAScreenshot
- type PageData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCoreClient ¶
func GetCoreClient() interface{}
GetCoreClient returns the core client instance for advanced usage
func GetSessionStats ¶
func GetSessionStats() map[string]interface{}
GetSessionStats returns current session statistics
func InitializeClient ¶
func InitializeClient(serverCfg *cfgType.ServerConfig) error
InitializeClient sets up the client package with server configuration
func PrependDir ¶
Helper function to prepend a directory path to a list of filenames
func RegisterEndpoints ¶
RegisterEndpoints registers all endpoints on the given mux
func RegisterPWARoutes ¶
RegisterPWARoutes registers PWA-related routes
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, data PageData, view string)
RenderTemplate renders a template with the standard layout
func ShutdownClient ¶
func ShutdownClient() error
ShutdownClient gracefully shuts down the client package
Types ¶
type ClientInitError ¶
type ClientInitError struct {
Message string
}
ClientInitError represents initialization errors
func (*ClientInitError) Error ¶
func (e *ClientInitError) Error() string
type PWAIcon ¶
type PWAIcon struct {
Src string `json:"src"`
Sizes string `json:"sizes"`
Type string `json:"type"`
Purpose string `json:"purpose,omitempty"`
}
PWAIcon represents an icon in the manifest
type PWAManifest ¶
type PWAManifest struct {
Name string `json:"name"`
ShortName string `json:"short_name"`
Description string `json:"description"`
StartURL string `json:"start_url"`
Display string `json:"display"`
BackgroundColor string `json:"background_color"`
ThemeColor string `json:"theme_color"`
Orientation string `json:"orientation"`
Scope string `json:"scope"`
Lang string `json:"lang"`
Categories []string `json:"categories"`
Screenshots []PWAScreenshot `json:"screenshots,omitempty"`
Icons []PWAIcon `json:"icons"`
}
PWAManifest represents the web app manifest structure
Click to show internal directories.
Click to hide internal directories.