echo

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 5 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 {
	Listener net.Listener
	// contains filtered or unexported fields
}

Server accepts connection and writes back anything it reads.

func NewServer

func NewServer() *Server

NewServer starts a local TCP server for testing, it sends back whatever it receives.

func (*Server) Close

func (e *Server) Close() error

func (*Server) Serve

func (s *Server) Serve()

Jump to

Keyboard shortcuts

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