Documentation ¶
Index ¶
- func CloseDatabase(z *zest.Zest) error
- func ConnectDatabase(z *zest.Zest) error
- func InitServer(z *zest.Zest) error
- func LaunchGarbageCollector(z *zest.Zest) error
- func MigrateDatabase(z *zest.Zest) error
- func PopulateConstants(z *zest.Zest) error
- func Register(z *zest.Zest) error
- func Run(overrideConst zest.SeqFunc)
- func SeedDatabase(z *zest.Zest) error
- func SetCli(appli *zest.Zest)
- func SetRoutes(z *zest.Zest) error
- type Config
- type ConfigImporter
- type ConfigImporterPoliciesInter
- type ConfigImporterPoliciesValidator
- type ConfigImporterResourcesInter
- type ConfigImporterResourcesValidator
- type Constants
- type GarbageCollector
- type GarbageCollectorSessionsRepo
- type TestApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseDatabase ¶
func ConnectDatabase ¶
func InitServer ¶
func LaunchGarbageCollector ¶
func MigrateDatabase ¶
func PopulateConstants ¶
func SeedDatabase ¶
Types ¶
type ConfigImporter ¶
type ConfigImporter struct {
// contains filtered or unexported fields
}
func NewConfigImporter ¶
func NewConfigImporter( pi ConfigImporterPoliciesInter, pv ConfigImporterPoliciesValidator, ri ConfigImporterResourcesInter, rv ConfigImporterResourcesValidator, ) *ConfigImporter
func (*ConfigImporter) Import ¶
func (ci *ConfigImporter) Import(path string) error
type Constants ¶
type Constants struct { Swagger struct { Location string } App struct { Port int ExitTimeout time.Duration Config string } Auth struct { RedirectURL string GrantAll bool } GC struct { Location string Freq time.Duration } DB struct { Location string Timeout time.Duration } Session struct { Validity time.Duration TokenLength int } }
func NewConstants ¶
func NewConstants() *Constants
func (*Constants) GetGrantAll ¶
func (*Constants) GetRedirectURL ¶
func (*Constants) GetSessionTokenLength ¶
func (*Constants) GetSessionValidity ¶
type GarbageCollector ¶
type GarbageCollector struct {
// contains filtered or unexported fields
}
func NewGarbageCollector ¶
func NewGarbageCollector(repo GarbageCollectorSessionsRepo) *GarbageCollector
type TestApp ¶
type TestApp struct {
// contains filtered or unexported fields
}
func NewTestApp ¶
func NewTestApp() *TestApp
Click to show internal directories.
Click to hide internal directories.