http

package
v0.0.0-...-0441cc5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

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

func (*Gateway) ListenAndServe

func (g *Gateway) ListenAndServe(addr string) error

ListenAndServe is the entrypoint to run the Gateway.

func (*Gateway) LoadConfig

func (g *Gateway) LoadConfig(conf *sx.GatewayConfig) error

LoadConfig configures the Gateway to use a new configuration. If the gateway was already running, it will start using the new configuration for new requests.

func (*Gateway) ServeHTTP

func (g *Gateway) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the standard Go HTTP interface.

func (*Gateway) Shutdown

func (g *Gateway) Shutdown(ctx context.Context) error

Shutdown gracefully stops the gateway.

Jump to

Keyboard shortcuts

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