mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
16 lines
410 B
Go
16 lines
410 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
type Sessions struct {
|
|
DefaultDuration time.Duration `mapstructure:"DEFAULT_DURATION" yaml:"defaultDuration" default:"5m"`
|
|
ExpirationInterval time.Duration `mapstructure:"EXPIRATION_INTERVAL" yaml:"expirationInterval" default:"20s"`
|
|
}
|
|
|
|
func NewSessionsConfig() Sessions {
|
|
return Sessions{
|
|
DefaultDuration: 5 * time.Minute,
|
|
ExpirationInterval: 20 * time.Second,
|
|
}
|
|
}
|