web

package
v0.0.0-...-cc0c603 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Err error `json:"error"`
}

func (Error) MarshalJSON

func (err Error) MarshalJSON() ([]byte, error)

type Server

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

func NewServer

func NewServer(cfg config.Config, cache types.Cache, frontendFS embed.FS, gatherer *observability.Metrics, prod bool, version string) (*Server, error)

func (*Server) Start

func (srv *Server) Start(ctx context.Context, eventsChan chan types.OutEvent) error

type StaticInfo

type StaticInfo struct {
	SoftwareVersion        string `json:"softwareVersion"`
	WindowTitle            string `json:"windowTitle"`
	ApplicationTitle       string `json:"applicationTitle"`
	FaviconBase64          string `json:"faviconBase64"`
	LogoBase64             string `json:"logoBase64"`
	ScaleInitialPercentage int    `json:"scaleInitialPercentage"`
	MaxImagesDisplayCount  int    `json:"maxImagesDisplayCount"`
	TileServerURL          string `json:"tileServerURL"`
	ImageGroups            []struct {
		GroupName string `json:"name"`
		Bucket    string `json:"bucket"`
		Types     []struct {
			Name        string `json:"name"`
			DisplayName string `json:"displayName"`
		} `json:"types"`
	} `json:"imageGroups"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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