Directories
¶
| Path | Synopsis |
|---|---|
|
legacy
Package legacy is nps's one door to the wire protocol that released npc speak: it alone turns protocol messages into nps's own types.
|
Package legacy is nps's one door to the wire protocol that released npc speak: it alone turns protocol messages into nps's own types. |
|
launch
Package launch resolves what npc is told to start into one model, a list of Profile: launch links, configuration files, -L accesses and the flags and file forms of earlier versions (compat.go) all end there and run the same way.
|
Package launch resolves what npc is told to start into one model, a list of Profile: launch links, configuration files, -L accesses and the flags and file forms of earlier versions (compat.go) all end there and run the same way. |
|
legacy
Package legacyclient is the old protocol as npc spoke it: a client for tests of a server that accepts old npc; npc itself no longer links it.
|
Package legacyclient is the old protocol as npc spoke it: a client for tests of a server that accepts old npc; npc itself no longer links it. |
|
cmd
|
|
|
npc
command
|
|
|
nps
command
|
|
|
internal
|
|
|
cliargs
Package cliargs prepares the command line of nps and npc for pflag.
|
Package cliargs prepares the command line of nps and npc for pflag. |
|
coreproto/connect
Package connect makes the outer session of an npc profile on the core protocol from the settings of npc.conf, a launch payload or the command line, which all arrive as a config.CommonConfig.
|
Package connect makes the outer session of an npc profile on the core protocol from the settings of npc.conf, a launch payload or the command line, which all arrive as a config.CommonConfig. |
|
coreproto/coreapi
Package coreapi is the boundary between the core protocol and the code that uses it: the bridge and the client see only these interfaces, with no zmux or wire type, as they see the old protocol only through bridge/legacy.
|
Package coreapi is the boundary between the core protocol and the code that uses it: the bridge and the client see only these interfaces, with no zmux or wire type, as they see the old protocol only through bridge/legacy. |
|
coreproto/session
Package session runs the core protocol on zmux: Admission on the shared bridge ports, Establish on both sides, the client table and the sessions.
|
Package session runs the core protocol on zmux: Admission on the shared bridge ports, Establish on both sides, the client table and the sessions. |
|
coreproto/wire
Package wire is the wire format of the core protocol: varints, fields, the numbering tables, Hello, OPEN_INFO, reply heads, the CONFIG snapshot and the key derivation.
|
Package wire is the wire format of the core protocol: varints, fields, the numbering tables, Hello, OPEN_INFO, reply heads, the CONFIG snapshot and the key derivation. |
|
fieldtest
Package fieldtest helps tests check that code handling every field of a struct keeps up with fields added to it.
|
Package fieldtest helps tests check that code handling every field of a struct keeps up with fields added to it. |
|
logsetup
Package logsetup turns the log settings of nps and npc into slogx configuration, the same way for both.
|
Package logsetup turns the log settings of nps and npc into slogx configuration, the same way for both. |
|
tunnelwire
Package tunnelwire implements the wire protocol between a tunnel client and its server.
|
Package tunnelwire implements the wire protocol between a tunnel client and its server. |
|
tunnelwire/control
Package control holds the messages of the protocol's control streams.
|
Package control holds the messages of the protocol's control streams. |
|
lib
|
|
|
acl
Package acl compiles and evaluates the access lists of nps on top of geomatch: the source lists (who may connect) of the global, client and tunnel or host levels, and the destination list of a proxy tunnel.
|
Package acl compiles and evaluates the access lists of nps on top of geomatch: the source lists (who may connect) of the global, client and tunnel or host levels, and the destination list of a proxy tunnel. |
|
auth
Package auth checks Basic credentials against single and multiple accounts, validates proof-of-work answers and matches trusted proxies.
|
Package auth checks Basic credentials against single and multiple accounts, validates proof-of-work answers and matches trusted proxies. |
|
clock
Package clock corrects the local clock by an NTP offset and sets the process time zone.
|
Package clock corrects the local clock by an NTP offset and sets the process time zone. |
|
connprofile
Package connprofile parses the server address of one npc connection, a profile: one or more carrier candidates separated by "|".
|
Package connprofile parses the server address of one npc connection, a profile: one or more carrier candidates separated by "|". |
|
event
Package event is a small in-process hub.
|
Package event is a small in-process hub. |
|
healthcheck
Package healthcheck holds the messages of server-given health checks, apart from any protocol that carries them.
|
Package healthcheck holds the messages of server-given health checks, apart from any protocol that carries them. |
|
instancekey
Package instancekey loads persistent instance secrets and derives purpose-specific keys.
|
Package instancekey loads persistent instance secrets and derives purpose-specific keys. |
|
ipreg
Package ipreg keeps the visitor addresses registered for clients whose entries only allow registered addresses.
|
Package ipreg keeps the visitor addresses registered for clients whose entries only allow registered addresses. |
|
logevent
Package logevent is the table of nps and npc events: their names, levels, and whether they also go to the security log or the event bus (webhook).
|
Package logevent is the table of nps and npc events: their names, levels, and whether they also go to the security log or the event bus (webhook). |
|
netaddr
Package netaddr parses host and port strings, picks local and outbound IP addresses, builds bind addresses and routes lookups to a custom DNS server.
|
Package netaddr parses host and port strings, picks local and outbound IP addresses, builds bind addresses and routes lookups to a custom DNS server. |
|
rate
Package rate limits the bytes a client's connections transfer, on top of github.com/djylb/byterate.
|
Package rate limits the bytes a client's connections transfer, on top of github.com/djylb/byterate. |
|
runenv
Package runenv locates the run, install, log and config paths of the process, reports its uptime and serves pprof on request.
|
Package runenv locates the run, install, log and config paths of the process, reports its uptime and serves pprof on request. |
|
slogxzap
Package slogxzap gives libraries that log with zap (certmagic, acmez) a *zap.Logger whose lines go to a *slog.Logger.
|
Package slogxzap gives libraries that log with zap (certmagic, acmez) a *zap.Logger whose lines go to a *slog.Logger. |
|
textutil
Package textutil parses loosely written configuration values and lists and normalizes line endings.
|
Package textutil parses loosely written configuration values and lists and normalizes line endings. |
|
webhook
Package webhook delivers the events of a subscription as signed HTTP POSTs.
|
Package webhook delivers the events of a subscription as signed HTTP POSTs. |
|
ports
Package ports checks and picks the ports that tunnels listen on, within the ports the server config allows.
|
Package ports checks and picks the ports that tunnels listen on, within the ports the server config allows. |
|
stats
Package stats samples the load, memory and traffic of the server for the dashboard.
|
Package stats samples the load, memory and traffic of the server for the dashboard. |
|
web
|
|
Click to show internal directories.
Click to hide internal directories.
