server

package
v0.0.0-...-e89c1db Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManifestHandler

func ManifestHandler(m Manifest) http.Handler

func Start

func Start()

Types

type Manifest

type Manifest struct {
	Name            string         `json:"name,omitempty"`
	ShortName       string         `json:"short_name,omitempty"`
	ThemeColor      string         `json:"theme_color,omitempty"`
	BackgroundColor string         `json:"background_color,omitempty"`
	Display         string         `json:"display,omitempty"`
	Scope           string         `json:"scope,omitempty"`
	StartUrl        string         `json:"start_url,omitempty"`
	Icons           []ManifestIcon `json:"icons,omitempty"`
}

type ManifestIcon

type ManifestIcon struct {
	Src   string `json:"src,omitempty"`
	Type  string `json:"type,omitempty"`
	Sizes string `json:"sizes,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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