http

package
v0.0.0-...-61cf9d3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RequestTimeout until the request has to be finished
	RequestTimeout = 60 * time.Second
)

Variables

This section is empty.

Functions

func BBBRequestMiddleware

func BBBRequestMiddleware(
	mountPoint string,
	ctrl *cluster.Controller,
	gateway *cluster.Gateway,
) echo.MiddlewareFunc

BBBRequestMiddleware decodes the incoming HTTP request into a BBB request and passes it to the API gateway. All requests starting with the mountpoint prefix are treated as BBB requests.

An error will be returned when A request can not be decoded.

Types

type Server

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

Server provides the http server for the application.

func NewServer

func NewServer(
	serviceID string,
	ctrl *cluster.Controller,
	gateway *cluster.Gateway,
) *Server

NewServer configures and creates a new http interface to our cluster gateway.

func (*Server) Start

func (s *Server) Start(listen string)

Start the HTTP interface

func (*Server) StartCleartextHTTP2

func (s *Server) StartCleartextHTTP2(listen string)

StartCleartextHTTP2 starts a HTTP2 interface without any TLS encryption.

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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