Move "logger" package to under types, now that we have it.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2020-02-14 19:23:16 -08:00 committed by Brad Fitzpatrick
parent dec5d64593
commit 2896be60db
19 changed files with 18 additions and 18 deletions

View File

@ -18,10 +18,10 @@
"time" "time"
"golang.org/x/oauth2" "golang.org/x/oauth2"
"tailscale.com/logger"
"tailscale.com/logtail/backoff" "tailscale.com/logtail/backoff"
"tailscale.com/tailcfg" "tailscale.com/tailcfg"
"tailscale.com/types/empty" "tailscale.com/types/empty"
"tailscale.com/types/logger"
) )
// TODO(apenwarr): eliminate the 'state' variable, as it's now obsolete. // TODO(apenwarr): eliminate the 'state' variable, as it's now obsolete.

View File

@ -25,8 +25,8 @@
"github.com/tailscale/wireguard-go/wgcfg" "github.com/tailscale/wireguard-go/wgcfg"
"golang.org/x/crypto/nacl/box" "golang.org/x/crypto/nacl/box"
"golang.org/x/oauth2" "golang.org/x/oauth2"
"tailscale.com/logger"
"tailscale.com/tailcfg" "tailscale.com/tailcfg"
"tailscale.com/types/logger"
"tailscale.com/version" "tailscale.com/version"
"tailscale.com/wgengine/filter" "tailscale.com/wgengine/filter"
) )

View File

@ -15,7 +15,7 @@
"golang.org/x/crypto/curve25519" "golang.org/x/crypto/curve25519"
"golang.org/x/crypto/nacl/box" "golang.org/x/crypto/nacl/box"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
type Client struct { type Client struct {

View File

@ -23,7 +23,7 @@
"golang.org/x/crypto/curve25519" "golang.org/x/crypto/curve25519"
"golang.org/x/crypto/nacl/box" "golang.org/x/crypto/nacl/box"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
const magic = 0x44c55250 // "DERP" with a non-ASCII high-bit const magic = 0x44c55250 // "DERP" with a non-ASCII high-bit

View File

@ -23,7 +23,7 @@
"sync" "sync"
"tailscale.com/derp" "tailscale.com/derp"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
// Client is a DERP-over-HTTP client. // Client is a DERP-over-HTTP client.

View File

@ -10,7 +10,7 @@
"time" "time"
"github.com/tailscale/wireguard-go/wgcfg" "github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
type Handle struct { type Handle struct {

View File

@ -22,9 +22,9 @@
"github.com/klauspost/compress/zstd" "github.com/klauspost/compress/zstd"
"tailscale.com/control/controlclient" "tailscale.com/control/controlclient"
"tailscale.com/ipn" "tailscale.com/ipn"
"tailscale.com/logger"
"tailscale.com/logtail/backoff" "tailscale.com/logtail/backoff"
"tailscale.com/safesocket" "tailscale.com/safesocket"
"tailscale.com/types/logger"
"tailscale.com/wgengine" "tailscale.com/wgengine"
) )

View File

@ -14,10 +14,10 @@
"github.com/tailscale/wireguard-go/wgcfg" "github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/control/controlclient" "tailscale.com/control/controlclient"
"tailscale.com/logger"
"tailscale.com/portlist" "tailscale.com/portlist"
"tailscale.com/tailcfg" "tailscale.com/tailcfg"
"tailscale.com/types/empty" "tailscale.com/types/empty"
"tailscale.com/types/logger"
"tailscale.com/version" "tailscale.com/version"
"tailscale.com/wgengine" "tailscale.com/wgengine"
"tailscale.com/wgengine/filter" "tailscale.com/wgengine/filter"

View File

@ -13,7 +13,7 @@
"log" "log"
"time" "time"
"tailscale.com/logger" "tailscale.com/types/logger"
"tailscale.com/version" "tailscale.com/version"
) )

View File

@ -9,7 +9,7 @@
import ( import (
"time" "time"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
// Message represents a message returned from a connection. // Message represents a message returned from a connection.

View File

@ -15,7 +15,7 @@
"github.com/tailscale/wireguard-go/device" "github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun" "github.com/tailscale/wireguard-go/tun"
"github.com/tailscale/wireguard-go/wgcfg" "github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
// For now this router only supports the userspace WireGuard implementations. // For now this router only supports the userspace WireGuard implementations.

View File

@ -7,7 +7,7 @@
import ( import (
"github.com/tailscale/wireguard-go/device" "github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun" "github.com/tailscale/wireguard-go/tun"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
type darwinRouter struct { type darwinRouter struct {

View File

@ -9,7 +9,7 @@
import ( import (
"github.com/tailscale/wireguard-go/device" "github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun" "github.com/tailscale/wireguard-go/tun"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
func NewUserspaceRouter(logf logger.Logf, tunname string, dev *device.Device, tuntap tun.Device, netChanged func()) Router { func NewUserspaceRouter(logf logger.Logf, tunname string, dev *device.Device, tuntap tun.Device, netChanged func()) Router {

View File

@ -7,7 +7,7 @@
import ( import (
"github.com/tailscale/wireguard-go/device" "github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun" "github.com/tailscale/wireguard-go/tun"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
type fakeRouter struct { type fakeRouter struct {

View File

@ -19,7 +19,7 @@
"github.com/tailscale/wireguard-go/tun" "github.com/tailscale/wireguard-go/tun"
"github.com/tailscale/wireguard-go/wgcfg" "github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/atomicfile" "tailscale.com/atomicfile"
"tailscale.com/logger" "tailscale.com/types/logger"
"tailscale.com/wgengine/monitor" "tailscale.com/wgengine/monitor"
) )

View File

@ -10,7 +10,7 @@
winipcfg "github.com/tailscale/winipcfg-go" winipcfg "github.com/tailscale/winipcfg-go"
"github.com/tailscale/wireguard-go/device" "github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun" "github.com/tailscale/wireguard-go/tun"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
type winRouter struct { type winRouter struct {

View File

@ -8,7 +8,7 @@
"fmt" "fmt"
"runtime" "runtime"
"tailscale.com/logger" "tailscale.com/types/logger"
) )
// RusagePrefixLog returns a Logf func wrapping the provided logf func that adds // RusagePrefixLog returns a Logf func wrapping the provided logf func that adds

View File

@ -16,8 +16,8 @@
"github.com/tailscale/wireguard-go/device" "github.com/tailscale/wireguard-go/device"
"github.com/tailscale/wireguard-go/tun" "github.com/tailscale/wireguard-go/tun"
"github.com/tailscale/wireguard-go/wgcfg" "github.com/tailscale/wireguard-go/wgcfg"
"tailscale.com/logger"
"tailscale.com/tailcfg" "tailscale.com/tailcfg"
"tailscale.com/types/logger"
"tailscale.com/wgengine/filter" "tailscale.com/wgengine/filter"
"tailscale.com/wgengine/magicsock" "tailscale.com/wgengine/magicsock"
"tailscale.com/wgengine/packet" "tailscale.com/wgengine/packet"