Versions in this module Expand all Collapse all v1 v1.0.0 May 29, 2022 Changes in this version type PayLoad + func (p *PayLoad) ParseToken(token string, key []byte) (bool, error) v0 v0.1.0 Nov 17, 2021 Changes in this version + type AuthLevel uint + const AuthAll + const AuthCreate + const AuthDelete + const AuthDo + const AuthNone + const AuthPart + const AuthRead + const AuthUpdate + func (a AuthLevel) CanCreate() bool + func (a AuthLevel) CanDelete() bool + func (a AuthLevel) CanDo() bool + func (a AuthLevel) CanDoAny() bool + func (a AuthLevel) CanRead() bool + func (a AuthLevel) CanUpdate() bool + func (a AuthLevel) Upper(b AuthLevel) bool + type Config struct + Host string + Key string + UUID string + func (c *Config) Valid() bool + type OA struct + Key []byte + func New(c *Config) *OA + func (oa *OA) LoginUrl() string + func (oa *OA) Parse(token string, payload jwt.PayloadInterface) (bool, error) + func (oa *OA) Ping() + type PayLoad struct + Auth []*SimpleAuth + ID uint + func (p *PayLoad) GetAuth(ResourceID string, ResourceUUID ...string) AuthLevel + type SimpleAuth struct + Level AuthLevel + RID string + RUID string