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
ChartURL string
TlsCert string
TlsKey string
Username string
Password string
ChartPostFormFieldName string
ProvPostFormFieldName string
ContextPath string
LogJSON bool
Debug bool
EnableAPI bool
AllowOverwrite bool
EnableMetrics bool
AnonymousGet bool
GenIndex bool
IndexLimit int
Depth int
}
ServerOptions are options for constructing a Server
Click to show internal directories.
Click to hide internal directories.