mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
cc06ab6c18
* [CI] Add gocritic linter * Implement gocritic recommendations The outstanding recommendations are due to be addressed in #959 and #971 respectively. * Fix implementation tests * Fix remaining linting issues. * Fix tests. Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
22 lines
627 B
Go
22 lines
627 B
Go
package schema
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const denyPolicy = "deny"
|
|
|
|
const argon2id = "argon2id"
|
|
|
|
// ProfileRefreshDisabled represents a value for refresh_interval that disables the check entirely.
|
|
const ProfileRefreshDisabled = "disable"
|
|
|
|
// ProfileRefreshAlways represents a value for refresh_interval that's the same as 0ms.
|
|
const ProfileRefreshAlways = "always"
|
|
|
|
// RefreshIntervalDefault represents the default value of refresh_interval.
|
|
const RefreshIntervalDefault = "5m"
|
|
|
|
// RefreshIntervalAlways represents the duration value refresh interval should have if set to always.
|
|
const RefreshIntervalAlways = 0 * time.Millisecond
|