chartmuseum

package
v0.0.0-...-a50f772 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Listen(port int)
}

Server is a generic interface for web servers

func NewServer

func NewServer(options ServerOptions) (Server, error)

NewServer creates a new Server instance

type ServerOptions

type ServerOptions struct {
	StorageBackend         storage.Backend
	ExternalCacheStore     cache.Store
	ChartURL               string
	TlsCert                string
	TlsKey                 string
	Username               string
	Password               string
	ChartPostFormFieldName string
	ProvPostFormFieldName  string
	ContextPath            string
	LogJSON                bool
	Debug                  bool
	EnableAPI              bool
	UseStatefiles          bool
	AllowOverwrite         bool
	EnableMetrics          bool
	AnonymousGet           bool
	GenIndex               bool
	MaxStorageObjects      int
	IndexLimit             int
	Depth                  int
	MaxUploadSize          int
}

ServerOptions are options for constructing a Server

Directories

Path Synopsis
server

Jump to

Keyboard shortcuts

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