tailcfg: add IsZero methods to UserID and NodeID

These will be helpful for doing some automated refactoring.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder 2020-09-29 17:38:56 -07:00
parent e5894aba42
commit 2b8d2babfa
1 changed files with 8 additions and 0 deletions

View File

@ -27,10 +27,18 @@ type ID int64
type UserID ID
func (u UserID) IsZero() bool {
return u == 0
}
type LoginID ID
type NodeID ID
func (u NodeID) IsZero() bool {
return u == 0
}
type GroupID ID
type RoleID ID