package
0.0.0-20240904170749-9cca7b200aed
Repository: https://github.com/celzero/firestack.git
Documentation: pkg.go.dev
# Packages
Package blindrsa implements the RSA Blind Signature Protocol as defined in [RFC9474].
# Functions
Alloc returns a truncated byte slice of size 2048.
AllocRegion returns a truncated byte slice at least size big.
Close closes cs.
CloseConn closes cs.
No description provided by the author
No description provided by the author
CloseOp closes op on c.
CloseTCP closes c.
CloseTCPRead closes the read end of r.
CloseTCPWrite closes the write end of w.
CloseUDP closes c.
Gg runs f in a goroutine, recovers from any panics if any; then calls cb in a separate goroutine, and recovers from any panics.
No description provided by the author
Go runs f in a goroutine and recovers from any panics.
Go1 runs f(arg) in a goroutine and recovers from any panics.
Go2 runs f(arg0,arg1) in a goroutine and recovers from any panics.
No description provided by the author
Gx runs f in a goroutine and exits the process if f panics.
IsNil reports whether x is nil if its Chan, Func, Map, Pointer, UnsafePointer, Interface, and Slice; may panic or return false if x is not addressable.
may panic or return false if x is not addressable.
NewBarrier returns a new Barrier with the given time-to-live for completed Vs.
NewBarrier2 returns a new Barrier with the time-to-lives for completed Vs (ttl) and errored Vs (neg).
No description provided by the author
NewDefaultSieve returns a new Sieve with default capacity (2048) and lifetime (30s).
NewExpiringMap returns a new ExpMap.
No description provided by the author
No description provided by the author
NewP90Estimator returns a new estimator with percentile p.
NewP50Estimator returns a new P50 (median) estimator.
NewSieve returns a new Sieve with the given capacity and lifetime.
NewVolatile returns a new Volatile with the value t.
NewVolatile returns a new uninitialized Volatile.
Pipe copies data from src to dst, and returns the number of bytes copied.
Recover must be called as a defered function, and must be the first defer called at the start of a new goroutine.
fn is called in a separate goroutine, if a panic is recovered.
Recycle returns the byte slices to the pool.
No description provided by the author
No description provided by the author
# Constants
Anew is the value returned by Barrier.Do when the function was executed and its results are stored in the Barrier.
B16384 is slab of size 16k.
B2048 is slab of size 2k; also the min.
B32768 is slab of size 32k.
B4096 is slab of size 4k.
B65536 is slab of size 64k.
B8192 is slab of size 8k.
BMAX is slab of size 64k; also the max.
close.
close read.
close read write.
close write.
DontExit is a special code that can be passed to Recover to indicate that the process should not exit after recovering from a panic.
An exit code of 11 keeps us out of the way of the detailed exitcodes from plan, and also happens to be the same code as SIGSEGV which is roughly the same type of condition that causes most panics.
Shared is the value returned by Barrier.Do when the function's results are already stored in the Barrier.
# Structs
Barrier represents a class of work and forms a namespace in which units of work can be executed with duplicate suppression.
No description provided by the author
ExpMap holds expiring keys and read hits.
No description provided by the author
from: github.com/google/gvisor/blob/596e8d22/pkg/tcpip/link/sniffer/pcap.go#L26.
Sieve is a thread-safe map with expiring keys and fixed capacity.
V is an in-flight or completed Barrier.Do V.
# Interfaces
No description provided by the author
DuplexConn represents a bidirectional stream socket.
MinConn is a minimal connection interface that is a subset of both net.Conn and net.PacketConn.
P2QuantileEstimator is an interface for the P2 quantile estimator.
TCPConn abstracts a TCP connection coming from TUN.
UDPConn abstracts a UDP connection coming from TUN.