Documentation ¶
Index ¶
Constants ¶
View Source
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func NotImplemented ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(listen string, options ...ServerOption) *Server
type ServerOption ¶
type ServerOption func(*serverOptions) error
func EnableFullErrorsResponse ¶
func EnableFullErrorsResponse() ServerOption
func EnableTls ¶
func EnableTls(tlsCertPath, tlsKeyPath string) ServerOption
func MaxContentSize ¶
func MaxContentSize(maxContentSize int) ServerOption
func MaxFilenameLength ¶
func MaxFilenameLength(maxFilenameLength int) ServerOption
func TempDir ¶
func TempDir(dir string) ServerOption
func Templates ¶
func Templates(dir string) ServerOption
Source Files ¶
Click to show internal directories.
Click to hide internal directories.