Documentation
¶
Index ¶
- func RandomStoreValueBatch(ctx context.Context, ctr *app.Container, conf RandomStoreValueConfig, ...) (map[string]string, error)
- type ConstantValueGenerator
- type RadomGenerator
- type RandomBoolValueGenerator
- type RandomDatetimeValueGenerator
- type RandomElementValueGenerator
- type RandomFloatValueGenerator
- type RandomGenerator
- type RandomIntValueGenerator
- type RandomStoreValueBoolDataConfig
- type RandomStoreValueConfig
- type RandomStoreValueConstantDataConfig
- type RandomStoreValueDataConfig
- type RandomStoreValueDatetimeDataConfig
- type RandomStoreValueElementDataConfig
- type RandomStoreValueFloatDataConfig
- type RandomStoreValueIntDataConfig
- type RandomStoreValueRawConfig
- type RandomStoreValueStringDataConfig
- type RandomStoreValueUUIDDataConfig
- type RandomStringValueGenerator
- type RandomUUIDValueGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConstantValueGenerator ¶
type RadomGenerator ¶
type RandomBoolValueGenerator ¶
type RandomBoolValueGenerator struct {
Key string
}
type RandomElementValueGenerator ¶
type RandomElementValueGenerator struct { Key string Values []interface{} }
type RandomGenerator ¶
type RandomGenerator interface { Init(conf io.Reader) error GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error) }
func GetRandomGeneratorFactory ¶
func GetRandomGeneratorFactory(t string) RandomGenerator
type RandomIntValueGenerator ¶
type RandomStoreValueBoolDataConfig ¶
func (*RandomStoreValueBoolDataConfig) GeneratorFactory ¶
func (p *RandomStoreValueBoolDataConfig) GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error)
type RandomStoreValueConfig ¶
type RandomStoreValueConfig struct { Type string `yaml:"type"` Data []RandomStoreValueDataConfig `yaml:"data"` }
type RandomStoreValueConstantDataConfig ¶
type RandomStoreValueConstantDataConfig struct { Key string `yaml:"key"` Type string `yaml:"type"` Value string `yaml:"value"` }
func (*RandomStoreValueConstantDataConfig) GeneratorFactory ¶
func (p *RandomStoreValueConstantDataConfig) GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error)
type RandomStoreValueDatetimeDataConfig ¶
type RandomStoreValueDatetimeDataConfig struct { Key string `yaml:"key"` Type string `yaml:"type"` Format string `yaml:"format"` }
func (*RandomStoreValueDatetimeDataConfig) GeneratorFactory ¶
func (p *RandomStoreValueDatetimeDataConfig) GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error)
type RandomStoreValueElementDataConfig ¶
type RandomStoreValueElementDataConfig struct { Key string `yaml:"key"` Type string `yaml:"type"` Value []any `yaml:"value"` }
func (*RandomStoreValueElementDataConfig) GeneratorFactory ¶
func (p *RandomStoreValueElementDataConfig) GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error)
type RandomStoreValueFloatDataConfig ¶
type RandomStoreValueFloatDataConfig struct { Key string `yaml:"key"` Type string `yaml:"type"` From float64 `yaml:"from"` To float64 `yaml:"to"` Precision int `yaml:"precision"` }
func (*RandomStoreValueFloatDataConfig) GeneratorFactory ¶
func (p *RandomStoreValueFloatDataConfig) GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error)
type RandomStoreValueIntDataConfig ¶
type RandomStoreValueIntDataConfig struct { Key string `yaml:"key"` Type string `yaml:"type"` From int `yaml:"from"` To int `yaml:"to"` }
func (*RandomStoreValueIntDataConfig) GeneratorFactory ¶
func (p *RandomStoreValueIntDataConfig) GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error)
type RandomStoreValueStringDataConfig ¶
type RandomStoreValueStringDataConfig struct { Key string `yaml:"key"` Type string `yaml:"type"` Length int `yaml:"length"` CharSet string `yaml:"charSet"` // "numeric,[!@#$%^&*],capital,lower" }
func (*RandomStoreValueStringDataConfig) GeneratorFactory ¶
func (p *RandomStoreValueStringDataConfig) GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error)
type RandomStoreValueUUIDDataConfig ¶
func (*RandomStoreValueUUIDDataConfig) GeneratorFactory ¶
func (p *RandomStoreValueUUIDDataConfig) GeneratorFactory(ctx context.Context, ctr *app.Container) (RadomGenerator, error)
Click to show internal directories.
Click to hide internal directories.