server

package
v4.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: BSD-3-Clause Imports: 7 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(router *mux.Router) 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(router *mux.Router) error

type Server

type Server interface {
	ListenAndServe(*mux.Router) 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 NewServer

func NewServer(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