proxy.golang.org : github.com/thediveo/netdb : v1.0.3
Package netdb provides information about TCP/IP subsystem protocols and internet services, as commonly stored in files /etc/protocols and /etc/services. It is a pure Go implementation. This netdb package does not even try to slavishly replicate the POSIX C API; instead, it attempts to be Go-ish. For instance, the C type "servent" has simply become the netdb.Service type in order to avoid the arcane POSIX-rooted type names. The netdb package defaults to looking up protocols and services information from its built-in database instead of consulting /etc/protocols and /etc/services. Additionally, it also supports reading the protocol and service descriptions from the well-known /etc/protocols and /etc/services files; please see the examples for how to access these sources. This package bases on the file format descriptions for protocols(5) and services(5), as documented in https://man7.org/linux/man-pages/man5/protocols.5.html and https://man7.org/linux/man-pages/man5/services.5.html. The built-in database has been auto-generated from the etc/protocols and etc/services files courtesy of the netbase package of the Debian project (https://salsa.debian.org/md/netbase). In some sense, this netdb package picks up the baton from the https://github.com/dominikh/go-netdb package. However, it is not a fork but was written from scratch, considering (at least some of) the advice in issue #1 of the go-netdb package. Looks up an EtherType by its name Looks up an EtherType by its name Where required, merges protocol and service descriptions from /etc/protocols and /etc/services with the built-in database, replacing builtin descriptions with those found in the files. Where required, uses protocol and service descriptions only from /etc/protocols and /etc/services, ignoring the builtin data completely. Look up a (TCP/IP subsystem) protocol by its name. Looks up a (TCP/IP subsystem) protocol by its (uint8) number. Look up a service by its name and protocol name. Look up a service by its port number and protocol name.
Registry -
Documentation -
Download -
JSON -
codemeta.json
purl: pkg:golang/github.com/thediveo/netdb@v1.0.3
Published:
Indexed:
Related tag:
v1.0.3
- github.com/go-logr/logr v1.2.4
- github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
- github.com/golang/protobuf v1.5.3
- github.com/google/go-cmp v0.6.0
- github.com/google/go-querystring v1.1.0
- github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38
- github.com/hashicorp/go-cleanhttp v0.5.2
- github.com/hashicorp/go-retryablehttp v0.7.2
- github.com/onsi/ginkgo/v2 v2.13.0
- github.com/onsi/gomega v1.28.1
- github.com/xanzy/go-gitlab v0.93.2
- golang.org/x/net v0.17.0
- golang.org/x/oauth2 v0.6.0
- golang.org/x/sys v0.13.0
- golang.org/x/text v0.13.0
- golang.org/x/time v0.3.0
- golang.org/x/tools v0.12.0
- google.golang.org/appengine v1.6.7
- google.golang.org/protobuf v1.29.1
- gopkg.in/yaml.v3 v3.0.1