net

package
v1.164.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialContext added in v1.158.1

func DialContext(_ context.Context, network, address string) (net.Conn, error)

DialContext for net.

Types

type Server added in v1.164.0

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

Server for net.

func NewServer added in v1.164.0

func NewServer(svc string, serverer Serverer, listener net.Listener, logger *zap.Logger, sh fx.Shutdowner) *Server

NewServer for net.

func (*Server) Start added in v1.164.0

func (s *Server) Start()

Start the server.

func (*Server) Stop added in v1.164.0

func (s *Server) Stop(ctx context.Context)

Stop the server.

type Serverer added in v1.164.0

type Serverer interface {
	// Serve the underlying server.
	Serve() error

	// Shutdown the underlying server.
	Shutdown(ctx context.Context) error
}

Serverer for net.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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