Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hermione ¶
type Hermione struct { Employer struct { TFATokLife time.Duration SessionTokLife time.Duration LTSTokLife time.Duration InviteTokLife time.Duration } Hub struct { WebURL string TFATokLife time.Duration SessionTokLife time.Duration LTSTokLife time.Duration InviteTokLife time.Duration PasswordResetTokLife time.Duration } Port int TimingAttackDelay time.Duration }
func LoadHermioneConfig ¶
type HermioneConfigOnDisk ¶
type HermioneConfigOnDisk struct { Employer struct { TFATokLife string `json:"tfa_tok_life" validate:"required"` SessionTokLife string `json:"session_tok_life" validate:"required"` LTSTokLife string `json:"lts_tok_life" validate:"required"` InviteTokLife string `json:"employee_invite_tok_life" validate:"required"` } `json:"employer" validate:"required"` Hub struct { WebURL string `json:"web_url" validate:"required"` TFATokLife string `json:"tfa_tok_life" validate:"required"` SessionTokLife string `json:"session_tok_life" validate:"required"` LTSTokLife string `json:"lts_tok_life" validate:"required"` InviteTokLife string `json:"hub_user_invite_tok_life" validate:"required"` PasswordResetTokLife string `json:"password_reset_tok_life" validate:"required"` } `json:"hub" validate:"required"` Port string `json:"port" validate:"required,min=1,number"` TimingAttackDelay string `json:"timing_attack_delay" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.