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 }
Click to show internal directories.
Click to hide internal directories.