mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 03:25:35 +00:00
35c10373b5
Many packages reference the logtail ID types, but unfortunately pull in the transitive dependencies of logtail. Fix this problem by putting the log ID types in its own package with minimal dependencies. Signed-off-by: Joe Tsai <joetsai@digital-static.net>
29 lines
873 B
Go
29 lines
873 B
Go
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package logtail
|
|
|
|
import "tailscale.com/types/logid"
|
|
|
|
// Deprecated: Use "tailscale.com/types/logid".PrivateID instead.
|
|
type PrivateID = logid.PrivateID
|
|
|
|
// Deprecated: Use "tailscale.com/types/logid".NewPrivateID instead.
|
|
func NewPrivateID() (PrivateID, error) {
|
|
return logid.NewPrivateID()
|
|
}
|
|
|
|
// Deprecated: Use "tailscale.com/types/logid".ParsePrivateID instead.
|
|
func ParsePrivateID(s string) (PrivateID, error) {
|
|
return logid.ParsePrivateID(s)
|
|
}
|
|
|
|
// Deprecated: Use "tailscale.com/types/logid".PublicID instead.
|
|
type PublicID = logid.PublicID
|
|
|
|
// Deprecated: Use "tailscale.com/types/logid".ParsePublicID instead.
|
|
func ParsePublicID(s string) (PublicID, error) {
|
|
return logid.ParsePublicID(s)
|
|
}
|