server

package
v0.0.0-...-e8670d8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(cfg *config.Config, logger log.Logger) *Server

Returns a new Server with the reverse proxy

func (*Server) Close

func (s *Server) Close() error

Terminates the HTTP server.

func (*Server) ListenerAddr

func (s *Server) ListenerAddr() string

Returns the listener (tunnel) addresss.

func (*Server) Serve

func (s *Server) Serve() error

Serve the Proxy for the listener.

func (*Server) StartListener

func (s *Server) StartListener() (string, error)

Starts localtunnel listener.

Jump to

Keyboard shortcuts

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