server

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyServer

type ProxyServer struct {
	*http.Server
}

ProxyServer is a proxy server.

func NewProxy

func NewProxy(handler http.Handler, addr string) *ProxyServer

NewProxy new a gateway server.

func (*ProxyServer) Start

func (s *ProxyServer) Start(ctx context.Context) error

Start the server.

func (*ProxyServer) Stop

func (s *ProxyServer) Stop(ctx context.Context) error

Stop the server.

Jump to

Keyboard shortcuts

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