mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-21 07:46:04 +08:00
e878e4820a
- Avoid referencing conditions we know are false/true - Avoid using name of imported package as variable - Avoid broken (see list item 1) if else statement in `ipservice.go` by refactoring to switch statement - When assigning a pointer value to a variable along with an error, check that error before referencing that pointer. Thus avoiding de-referencing a nil and causing a panic. *** This item is the most important *** - Standard gofmt package sorting + linting; This includes fixing comment starts for go doc - Explicit non-handling of unhandled errors where appropriate (assigning errs to _ to reduce linter screaming) - Export ErrExpired in `netcache` package so that we can properly reference it using `errors.Is` instead of using `strings.Contains` against an `error.Error()` value |
||
---|---|---|
.. | ||
acls | ||
metrics | ||
pro | ||
accesskeys.go | ||
accesskeys_test.go | ||
auth.go | ||
dns.go | ||
errors.go | ||
extpeers.go | ||
gateway.go | ||
jwts.go | ||
metrics.go | ||
networks.go | ||
nodes.go | ||
peers.go | ||
relay.go | ||
security.go | ||
server.go | ||
serverconf.go | ||
telemetry.go | ||
timer.go | ||
traffic.go | ||
users.go | ||
util.go | ||
wireguard.go | ||
zombie.go |