website

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

README

server/website

Overview

Static website assets and server-side handling. Serves operator web artifacts and supporting handlers. Key routines cover website test within the website subsystem.

Go Files

  • website.go – Serves static website assets and handles related API endpoints.
  • website_test.go (tests) – Tests website serving logic and routing.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContent

func AddContent(name string, pbWebContent *clientpb.WebContent) error

AddContent - Add website content for a path

func AddWebsite

func AddWebsite(name string) (*clientpb.Website, error)

func GetContent

func GetContent(name string, path string) (*clientpb.WebContent, error)

GetContent - Get static content for a given path

func MapContent

func MapContent(name string, eager bool) (*clientpb.Website, error)

MapContent - List the content of a specific site, returns map of path->json(content-type/size)

func Names

func Names() ([]string, error)

Names - List all websites

func RemoveContent

func RemoveContent(name string, path string) error

RemoveContent - Remove website content for a path

func WebsiteByName

func WebsiteByName(name string) (*clientpb.Website, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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