netdx

package
v0.0.0-...-9037792 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IP   = "ip"
	TCP  = "tcp"
	UDP  = "udp"
	UNIX = "unix"
)
View Source
const (
	L3 = "l3"
	L4 = "l4"
	L7 = "l7"
)

Variables

This section is empty.

Functions

func AddTraceEvent

func AddTraceEvent()

func AllLayerDx

func AllLayerDx(verbose bool)

*

  • [√] OSI Layer 7 - application layer
  • [x] OSI Layer 6 - presentation layer
  • [x] OSI Layer 5 - session layer
  • [√] OSI Layer 4 - transport layer
  • [√] OSI Layer 3 - network layer
  • [x] OSI Layer 2 - data link layer
  • [x] OSI Layer 1 - physical layer *
  • NOTE: go run -gcflags="all=-N -l" main.go

func CloseConn

func CloseConn(c *conn) error

func DialIP

func DialIP(network string, laddr, raddr *net.IPAddr) (conn *net.IPConn, err error)

func DialTCP

func DialTCP(network string, laddr, raddr *net.TCPAddr) (conn *net.TCPConn, err error)

func DialUDP

func DialUDP(network string, laddr, raddr *net.UDPAddr) (conn *net.UDPConn, err error)

func DialUnix

func DialUnix(network string, laddr, raddr *net.UnixAddr) (conn *net.UnixConn, err error)

func GrpcInvoke

func GrpcInvoke(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, opts ...grpc.CallOption) (err error)

func L3Dx

func L3Dx(verbose bool)

OSI Layer 3 - network layer [√] IP

func L3Enabled

func L3Enabled() bool

func L3Errorf

func L3Errorf(format string, a ...interface{})

func L3Printf

func L3Printf(format string, a ...interface{})

func L4Dx

func L4Dx(verbose bool)

OSI Layer 4 - transport layer [√] TCP [√] UDP [√] UNIX

func L4Enabled

func L4Enabled() bool

func L4Errorf

func L4Errorf(format string, a ...interface{})

func L4Printf

func L4Printf(format string, a ...interface{})

func L7Dx

func L7Dx(verbose bool)

OSI Layer 7 - application layer [√] HTTP/HTTPS [√] GRPC

func L7Enabled

func L7Enabled() bool

func L7Errorf

func L7Errorf(format string, a ...interface{})

func L7Printf

func L7Printf(format string, a ...interface{})

func Listen

func Listen(network, address string) (lt net.Listener, err error)

func ReadConn

func ReadConn(c *conn, b []byte) (int, error)

func RegisterChannel

func RegisterChannel(_ uintptr, cc **grpc.ClientConn, _ int64, _ string) int64

func RegisterListenSocket

func RegisterListenSocket() int64

func RegisterNormalSocket

func RegisterNormalSocket() int64

func RegisterServer

func RegisterServer() int64

func RegisterSubChannel

func RegisterSubChannel() int64

func RemoveEntry

func RemoveEntry(id int64)

func RoundTrip

func RoundTrip(transport *http.Transport, req *http.Request) (reps *http.Response, err error)

func ShowTTY

func ShowTTY() error

You can see the network diagnostic information on your web browser

func VerboseEnabled

func VerboseEnabled() bool

func WriteConn

func WriteConn(c *conn, b []byte) (int, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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