serve

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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 {
	LocalDirectory string          // Local directory base path
	S3             *s3.Client      // AWS S3-compatible storage
	GCS            *storage.Client // Google Cloud Storage
	HTTP           *http.Client    // HTTP-requested storage
	HTTPEnabled    bool            // Whether HTTP is enabled
	HTTPSEnabled   bool            // Whether HTTPS is enabled
	Config         archive.RemoteArchiveConfig
}

func (Remote) AcceptsScheme added in v0.3.0

func (r Remote) AcceptsScheme(scheme url.Scheme) bool

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
	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