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 */ )
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.