server

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	Server
	// contains filtered or unexported fields
}

func (*HTTPServer) Address

func (s *HTTPServer) Address() string

func (*HTTPServer) ListenAndServe

func (s *HTTPServer) ListenAndServe(mux *http.ServeMux) error

type LambdaServer

type LambdaServer struct {
	Server
	// contains filtered or unexported fields
}

func (*LambdaServer) Address

func (s *LambdaServer) Address() string

func (*LambdaServer) ListenAndServe

func (s *LambdaServer) ListenAndServe(mux *http.ServeMux) error

type Server

type Server interface {
	ListenAndServe(*http.ServeMux) error
	Address() string
}

func NewHTTPServer

func NewHTTPServer(u *url.URL, args ...interface{}) (Server, error)

func NewLambdaServer

func NewLambdaServer(u *url.URL, args ...interface{}) (Server, error)

func NewStaticServer

func NewStaticServer(proto string, u *url.URL, args ...interface{}) (Server, error)

Jump to

Keyboard shortcuts

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