serve

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: BSD-3-Clause Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const MaxCachedPublicationAmount = 10
View Source
const MaxCachedPublicationTTL = time.Second * time.Duration(600)

Variables

This section is empty.

Functions

This section is empty.

Types

type Remote

type Remote struct {
	S3     *s3.Client      // AWS S3-compatible storage
	GCS    *storage.Client // Google Cloud Storage
	HTTP   *http.Client    // HTTP-requested storage
	Config archive.RemoteArchiveConfig
}

type Server

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

func NewServer

func NewServer(config ServerConfig, remote Remote) *Server

func (*Server) Routes

func (s *Server) Routes() *mux.Router

type ServerConfig

type ServerConfig struct {
	Debug             bool
	BaseDirectory     string
	JSONIndent        string
	InferA11yMetadata streamer.InferA11yMetadata
}

Directories

Path Synopsis
* Written in 2019 by Andrew Ayer * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to the * public domain worldwide.
* Written in 2019 by Andrew Ayer * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to the * public domain worldwide.

Jump to

Keyboard shortcuts

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