Registry / networking / peercred

peercred

JSON →
library0.0.0-20210906144145-0893ea02156agogounverified

Package peercred maps from a net.Conn to information about the other side of the connection using OS-specific facilities.

go get inet.af/peercred
INSTALL
IMPORT
SIG · PEERCRED
P
peercred
networkinggov0.0.0-20210906144145-0893ea02156a
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

peercred
inet.af/peercred

Retrieves peer credentials from a network connection.

package main import ( "fmt" "inet.af/peercred" "net" ) func main() { conn, _ := net.Dial("tcp", "example.com:80") creds, err := peercred.Get(conn) if err != nil { fmt.Println(err) } fmt.Println(creds) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210906144145-0893ea02156alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Resources
peercred — go get peercred · libregistry