api

package
v0.0.0-...-70e1626 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicationServer

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

func NewPublicationServer

func NewPublicationServer(config ServerConfig) *PublicationServer

func (*PublicationServer) Init

func (s *PublicationServer) Init() http.Handler

type ServerConfig

type ServerConfig struct {
	Bind      string   // The address to listen on
	Origins   []string // The CORS origins allowed (not yet implemented)
	SentryDSN string   // Sentry DSN (not yet implemented)
	CacheDSN  string   // Cache DSN (not yet implemented)
	// TODO replace PublicationPath with storage interface DSNs
	PublicationPath string // Filesystem path leading to stored publications
	StaticPath      string // Filesystem path leading to static assets to be served
}

Jump to

Keyboard shortcuts

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