Versions in this module Expand all Collapse all v0 v0.0.2 Jul 10, 2018 Changes in this version + var ErrInsufficientACLs = errors.New("insufficient rights") + var ErrInvalidAction = errors.New("action is not possible") + var ErrInvalidTS = errors.New("packet TS is out of valid range") + var ErrMultipleLogin = errors.New("account already logged") + var ErrWrongCredentials = errors.New("invalid credentials") + var ErrWrongIP = errors.New("ip don't match") + type A struct + ID ulid.ID + Password string + Token ulid.ID + Username string + type ACL uint8 + const Delete + const Owner + const Read + const Set + const Update + type Mapper interface + GetAccount func(Subset) (A, error) + SetAccount func(A) error + type Subset struct + Password string + Username string + type Token struct + Account ulid.ID + CorePool ulid.ID + Entity ulid.ID + ID ulid.ID + IP *net.UDPAddr + PC ulid.ID + Ping uint64 + SyncPool ulid.ID + type TokenHCMapper interface + ListTokenHC func(TokenHCSubset) ([]ulid.ID, error) + SetTokenHC func(ulid.ID, int64) error + type TokenHCSubset struct + MaxTS int64 + type TokenMapper interface + DelToken func(TokenSubset) error + GetToken func(TokenSubset) (Token, error) + SetToken func(Token) error + type TokenSubset struct + ID ulid.ID