http

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServerConfig

type HTTPServerConfig struct {
	Address        *string
	Port           *int
	AllowList      *[]string
	PollingDomain  *string
	PollingManager *polling.PollingServer
	TLS            *TLSConfig
	Version2       *bool
}

HTTPServerConfig contains fields necessary to build a listener to serve requests

type Server

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

Server contains all HTTP listeners

func HTTPServer

func HTTPServer(cfg *HTTPServerConfig) *Server

HTTPServer takes HTTPServerConfig input and returns a server with listeners

func (*Server) Start

func (s *Server) Start()

Start starts all HTTP listeners specified in Server

func (*Server) Stop

func (s *Server) Stop()

Stop gracefully stops all HTTP listeners

type TLSConfig

type TLSConfig struct {
	Port     *int
	CertFile *string
	KeyFile  *string
}

TLSConfig contains the path to PEM encoded certs

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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