You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/types
Josh Bleecher Snyder deb2f5e793 types/logger: add Context and related helpers
We often need both a log function and a context.
We can do this by adding the log function as a context value.
This commit adds helper glue to make that easy.
It is designed to allow incremental adoption.

Updates tailscale/corp#3138

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
3 years ago
..
dnstype cmd/cloner: mangle "go:generate" in cloner.go 3 years ago
empty types/empty: add Message, stop using mysterious *struct{} 5 years ago
flagtype types/flagtype: fix bug showing the default port value (shown in --help) 4 years ago
ipproto net/packet, wgengine/filter: support SCTP 4 years ago
key control/noise: use key.Machine{Public,Private} as appropriate. 3 years ago
logger types/logger: add Context and related helpers 3 years ago
netmap all: replace tailcfg.DiscoKey with key.DiscoPublic. 3 years ago
nettype wgengine/magicsock, tstest/natlab: start hooking up natlab to magicsock 4 years ago
opt types/opt: implement Bool.Scan 3 years ago
pad32 net/portmapper: add NAT-PMP client, move port mapping service probing 4 years ago
persist types/persist: use new node key type. 3 years ago
preftype types/preftype: don't use iota for consts persisted to disk 4 years ago
structs types/structs: add structs.Incomparable annotation, use it where applicable 5 years ago