httpserver

package
v0.0.0-...-06767ef Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyServerBuilder

type ProxyServerBuilder interface {
	ToEndpoint(lm.Endpoint) ProxyServerBuilder
	WithBasicAuth(string, string) ProxyServerBuilder
	DisableProxyErrorPage() ProxyServerBuilder
	EnableInsecureHTTPSBackend() ProxyServerBuilder
	Build() (*http.Server, error)
}

ProxyServerBuilder is used to proxy to already running server

type ServerBuilder

type ServerBuilder interface {
	WithSiteID(string) ServerBuilder
	WithDomain(string) ServerBuilder
	DisableOldCiphers(bool) ServerBuilder
	Proxy() ProxyServerBuilder
	ServeStatic() StaticServerBuilder
	ServeWebdav() WebdavServerBuilder
}

func New

func New() ServerBuilder

New starts creation of new server

type StaticServerBuilder

type StaticServerBuilder interface {
	FromDirectory(string) StaticServerBuilder
	WithBasicAuth(string, string) StaticServerBuilder
	Build() (*http.Server, error)
}

StaticServerBuilder is used to create server which expose local directory

type WebdavServerBuilder

type WebdavServerBuilder interface {
	FromDirectory(string) WebdavServerBuilder
	WithBasicAuth(string, string) WebdavServerBuilder
	Build() (*http.Server, error)
}

WebdavServerBuilder is used to create server which expose local directory

Jump to

Keyboard shortcuts

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