socket

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncError

type FuncError func(e error)

type Handler

type Handler func(request io.Reader, response io.Writer)

type Server

type Server interface {
	RegisterFuncError(f FuncError)
	SetReadTimeout(d time.Duration)
	SetWriteTimeout(d time.Duration)

	Listen(ctx context.Context, unixFile string, perm os.FileMode)
	Shutdown()
	Done() <-chan struct{}
}

func New

func New(h Handler, sizeBuffRead, sizeBuffWrite int32) Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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