http

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotHandler = fmt.Errorf("not handler")
)

Functions

func NewServer

func NewServer(handler http.Handler, tlsConfig tls.TLS) *server

func NewServerWithConfig

func NewServerWithConfig(conf *Config) (stream.Handler, error)

Types

type Config

type Config struct {
	Handler http.Handler
	TLS     tls.TLS `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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