Expand description
/etc/hosts file management.
Ported from internal/backends/hosts/{interface,client}.go. Go’s
implementation delegates to github.com/txn2/txeh; this port uses a
small hand-rolled /etc/hosts parser (HostsFile) instead of pulling
in an external crate for a narrow, well-understood file format. See
PORT_NOTES.md.
Structs§
- Client
- Ported from
Clientinclient.go. - Hosts
Config - Ported from
HostsConfigininterface.go. - Validation
Result - Ported from
ValidationResultininterface.go.
Enums§
- Hosts
Error - Ported from the error
txeh.NewHostsDefault()can return, wrapped as “reading hosts file: %w” in Go. - Validation
State - Ported from
ValidationStateininterface.go.
Traits§
- Backend
- Ported from the
Backendinterface ininterface.go.