net

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package net provides net functionality for grpc

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultResolver = net.DefaultResolver
)

Functions

func IsIPv4

func IsIPv4(addr string) bool

func IsIPv6

func IsIPv6(addr string) bool

func IsLocal

func IsLocal(host string) bool

func Parse

func Parse(addr string) (host string, port uint16, isIP bool, err error)

func ScanPorts

func ScanPorts(ctx context.Context, start, end uint16, host string) (ports []uint16, err error)

func SplitHostPort

func SplitHostPort(hostport string) (host string, port uint16, err error)

Types

type Conn

type Conn = net.Conn

func Dial added in v0.0.29

func Dial(network string, addr string) (conn Conn, err error)

type Dialer

type Dialer = net.Dialer

type ListenConfig

type ListenConfig = net.ListenConfig

type Listener

type Listener = net.Listener

func Listen

func Listen(network, address string) (Listener, error)

type Resolver

type Resolver = net.Resolver

Directories

Path Synopsis
Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc
Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc Package grpc provides generic functionality for grpc
metric
Package metric provides metrics functions for grpc Package metric provides metrics functions for grpc Package metric provides metrics functions for grpc Package metric provides metrics functions for grpc
Package metric provides metrics functions for grpc Package metric provides metrics functions for grpc Package metric provides metrics functions for grpc Package metric provides metrics functions for grpc
pool
Package pool provides grpc connection pool client Package pool provides grpc connection pool client
Package pool provides grpc connection pool client Package pool provides grpc connection pool client
proto
Package proto provides proto file logic
Package proto provides proto file logic
status
Package status provides statuses and errors returned by grpc handler functions
Package status provides statuses and errors returned by grpc handler functions
http
dump
Package dump provides http request/response dump logic
Package dump provides http request/response dump logic
metrics
Package metrics provides pprof profiler handler
Package metrics provides pprof profiler handler
middleware
Package middleware provides rest.Func Middleware Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func Package middleware provides rest.Func Middleware
Package middleware provides rest.Func Middleware Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func Package middleware provides rest.Func Middleware
rest
Package rest provides REST API common logic & variable
Package rest provides REST API common logic & variable
routing
Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func
Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func Package routing provides implementation of Go API for routing http Handler wrapped by rest.Func
transport
Package transport provides http transport roundtrip option Package transport provides http transport roundtrip option
Package transport provides http transport roundtrip option Package transport provides http transport roundtrip option
Package tcp provides tcp option Package tcp provides tcp option Package tcp provides tcp option
Package tcp provides tcp option Package tcp provides tcp option Package tcp provides tcp option

Jump to

Keyboard shortcuts

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