service

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(config *config.C) (*Service, error)

func (*Service) Close

func (s *Service) Close() error

func (*Service) DialContext

func (s *Service) DialContext(ctx context.Context, network, address string) (net.Conn, error)

DialContext dials the provided address. Currently only TCP is supported.

func (*Service) Listen

func (s *Service) Listen(network, address string) (net.Listener, error)

Listen listens on the provided address. Currently only TCP with wildcard addresses are supported.

func (*Service) Wait

func (s *Service) Wait() error

Jump to

Keyboard shortcuts

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