3
0

Add missing seeder options codegen

This commit is contained in:
Tomaž Jerman
2021-07-14 09:56:27 +02:00
parent 568a9e6262
commit 9dcea4fb79
2 changed files with 33 additions and 3 deletions
+33
View File
@@ -0,0 +1,33 @@
package options
// This file is auto-generated.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Definitions file that controls how this file is generated:
// pkg/options/seeder.yaml
type (
SeederOpt struct {
LogEnabled bool `env:"SEEDER_LOG_ENABLED"`
}
)
// Seeder initializes and returns a SeederOpt with default values
func Seeder() (o *SeederOpt) {
o = &SeederOpt{}
fill(o)
// Function that allows access to custom logic inside the parent function.
// The custom logic in the other file should be like:
// func (o *Seeder) Defaults() {...}
func(o interface{}) {
if def, ok := o.(interface{ Defaults() }); ok {
def.Defaults()
}
}(o)
return
}
-3
View File
@@ -1,6 +1,3 @@
imports:
- time
docs:
title: Seeder
description: A seeder is the initial seeding of a database with fake data.