cmd

package
v0.0.0-...-adca071 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const (
	PCAP_IF_LOOPBACK                         = 0x00000001 /* interface is loopback */
	PCAP_IF_UP                               = 0x00000002 /* interface is up */
	PCAP_IF_RUNNING                          = 0x00000004 /* interface is running */
	PCAP_IF_WIRELESS                         = 0x00000008 /* interface is wireless (*NOT* necessarily Wi-Fi!) */
	PCAP_IF_CONNECTION_STATUS                = 0x00000030 /* connection status: */
	PCAP_IF_CONNECTION_STATUS_UNKNOWN        = 0x00000000 /* unknown */
	PCAP_IF_CONNECTION_STATUS_CONNECTED      = 0x00000010 /* connected */
	PCAP_IF_CONNECTION_STATUS_DISCONNECTED   = 0x00000020 /* disconnected */
	PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE = 0x00000030 /* not applicable */
)

https://github.com/the-tcpdump-group/libpcap/blob/844f9d7ddff47c58f27b76c1620f38345ba73627/pcap/pcap.h#L330C30-L338

Variables

This section is empty.

Functions

func Execute

func Execute()

func InterceptorLogger

func InterceptorLogger(l *slog.Logger) logging.Logger

Types

type PeerClientConnPool

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

func NewPeerClientConnPool

func NewPeerClientConnPool(log *slog.Logger, connTimeout time.Duration) *PeerClientConnPool

func (*PeerClientConnPool) Client

func (pcm *PeerClientConnPool) Client(ctx context.Context, peer string) (*grpc.ClientConn, error)

func (*PeerClientConnPool) Close

func (pcm *PeerClientConnPool) Close(peer string) error

func (*PeerClientConnPool) CloseAll

func (pcm *PeerClientConnPool) CloseAll(peer string) error

Jump to

Keyboard shortcuts

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