config

package
v0.0.0-...-c63c6bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

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

func LoadHermioneConfig() (*Hermione, error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL