Files
sablier/pkg/config/sessions.go
Alexis Couvreur fca9c79289 refactor: reorganize code structure (#556)
* refactor: rename providers to Provider

* refactor folders

* fix build cmd

* fix build cmd

* fix build cmd

* fix cmd start
2025-03-10 14:11:40 -04:00

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,
}
}