server

package
v1.0.0-beta.30 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func NewServer

func NewServer(handler http.Handler) *http.Server

NewServerWithOptions returns a pointer with new Server

func NewServerWithConfigPath

func NewServerWithConfigPath(handler http.Handler, path string) (*http.Server, error)

func NewServerWithOptions

func NewServerWithOptions(handler http.Handler, options *Options) *http.Server

NewServerWithOptions returns a pointer with new Server

Types

type Options

type Options struct {
	Addr              string
	MaxHeaderBytes    int
	ReadHeaderTimeout time.Duration
	ReadTimeout       time.Duration
	WriteTimeout      time.Duration
	IdleTimeout       time.Duration
}

func NewOptions

func NewOptions() (*Options, error)

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

Jump to

Keyboard shortcuts

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