net

package
v1.166.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 8 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, 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 {
	fmt.Stringer

	// IsEnabled the underlying server.
	IsEnabled() bool

	// 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