Documentation ¶ Index ¶ type Auth func (ma *Auth) Authorize(u string) bool func (ma *Auth) Enforce(a1 string, a2 string, a3 string) (bool, error) func (ma *Auth) GenerateKey(k string, _ time.Duration) (string, error) func (ma *Auth) RefreshKey(k string, _ time.Duration) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Auth ¶ type Auth struct { AuthorizeFunc func(string) bool GenerateKeyFunc func(string) (string, error) EnforceFunc func(string, string, string) (bool, error) } func (*Auth) Authorize ¶ func (ma *Auth) Authorize(u string) bool func (*Auth) Enforce ¶ func (ma *Auth) Enforce(a1 string, a2 string, a3 string) (bool, error) func (*Auth) GenerateKey ¶ func (ma *Auth) GenerateKey(k string, _ time.Duration) (string, error) func (*Auth) RefreshKey ¶ func (ma *Auth) RefreshKey(k string, _ time.Duration) (string, error) Source Files ¶ View all Source files auth.go Click to show internal directories. Click to hide internal directories.