connectionutil

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkUtil

type NetworkUtil interface {
	ConnectToHost(string, string, bool) (net.Conn, error)
	WriteTo(net.Conn, []byte) error
	ReadFrom(net.Conn) (int, []byte, error)
	ListenIP(address string, isSecure bool) (net.Listener, error)
}

NetworkUtil interface declares the network methods

func GetInstance

func GetInstance() NetworkUtil

GetInstance returns the NetworkUtil instance

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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