http

package
v0.0.0-...-84d4900 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 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 {
	HTTPAddr           string
	HTTPSAddr          string
	Certificate        string
	PrivateKey         string
	CA                 string
	InsecureSkipVerify bool

	Handler http.Handler
	// contains filtered or unexported fields
}

HTTPServer is a http and https server.

func (*HTTPServer) GetHTTPAddr

func (h *HTTPServer) GetHTTPAddr() string

GetHTTPAddr get the bind address of the http server.

func (*HTTPServer) GetHTTPSAddr

func (h *HTTPServer) GetHTTPSAddr() string

GetHTTPSAddr get the bind address of the https server.

func (*HTTPServer) Init

func (h *HTTPServer) Init() error

Init initializes the server.

func (*HTTPServer) Stop

func (h *HTTPServer) Stop() error

Stop halts the router and close the listners.

Jump to

Keyboard shortcuts

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