proxy.golang.org : github.com/marcinwyszynski/connxray
Package connxray provides net.Listener and net.Conn introspection by wrapping around these objects and provide hooks which can be invoked for any method of the unerlying object. net.Conn hooks can be passed to a net.Listener which will be passed onwards to all net.Conn objects that are created as a result of net.Listener#Accept calls. Also of note is the fact that connxray.Listener#Accept creates an instance of connxray.Conn whose hooks can be set dynamically at any stage of the connection lifetime. This means that only certain net.Conn objects can be explicitly monitored (eg. sampling) or that monitoring behavior can be adjusted on the fly. Last but not least connxray.Conn implements net.PacketConn so can be used with any code that expects one (eg. golang.org/x/net/ipv[46]). If the underlying connection object does not implement net.PacketConn a releant error (ErrNotPacketConn) will be returned by ReadFrom and WriteTo methodes as well as passed to their respective hooks, if any were specified.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/marcinwyszynski/connxray
License: MIT
Latest release: almost 11 years ago
First release: almost 11 years ago
Namespace: github.com/marcinwyszynski
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago