3
0
Files
corteza/auth/identity.go
2018-09-04 15:37:43 +02:00

22 lines
263 B
Go

package auth
type (
Identity struct {
identity uint64
}
)
func NewIdentity(id uint64) *Identity {
return &Identity{
identity: id,
}
}
func (i Identity) Identity() uint64 {
return i.identity
}
func (i Identity) Valid() bool {
return i.identity > 0
}