network

package
v0.0.0-...-a1208dc Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGrpcOptions

func BuildGrpcOptions(clientTLSConfig *tls.Config) []grpc.DialOption

func GetHostIP

func GetHostIP() (string, error)

GetHostIP gets IPv4 address of network interface eth0.

Types

type PortAllocator

type PortAllocator interface {
	Next() (int32, error)
}
var BuiltinPortAllocator PortAllocator

func NewPortAllocator

func NewPortAllocator(hintMinPort, hintMaxPort int) PortAllocator

Jump to

Keyboard shortcuts

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