Documentation
¶
Index ¶
- Constants
- func GenerateBytes(faker *gofakeit.Faker, hints BytesHints) []byte
- func GenerateFixed32(faker *gofakeit.Faker, hints Fixed32Hints) uint32
- func GenerateFixed64(faker *gofakeit.Faker, hints Fixed64Hints) uint64
- func GenerateFloat32(faker *gofakeit.Faker, hints Float32Hints) float32
- func GenerateFloat64(faker *gofakeit.Faker, hints Float64Hints) float64
- func GenerateInt32(faker *gofakeit.Faker, hints Int32Hints) int32
- func GenerateInt64(faker *gofakeit.Faker, hints Int64Hints) int64
- func GenerateSFixed64(faker *gofakeit.Faker, hints SFixed64Hints) int64
- func GenerateSFixedInt32(faker *gofakeit.Faker, hints SFixedInt32Hints) int32
- func GenerateSInt32(faker *gofakeit.Faker, hints SInt32Hints) int32
- func GenerateSInt64(faker *gofakeit.Faker, hints SInt64Hints) int64
- func GenerateString(faker *gofakeit.Faker, hints StringHints) string
- func GenerateUInt32(faker *gofakeit.Faker, hints UInt32Hints) uint32
- func GenerateUInt64(faker *gofakeit.Faker, hints UInt64Hints) uint64
- func NewDataGenerator() *dataGenerator
- type BytesHints
- type DataGenerator
- type Fixed32Hints
- type Fixed64Hints
- type Float32Hints
- type Float64Hints
- type Int32Hints
- type Int64Hints
- type SFixed64Hints
- type SFixedInt32Hints
- type SInt32Hints
- type SInt64Hints
- type StringHints
- type UInt32Hints
- type UInt64Hints
Constants ¶
View Source
const MaxNestedDepth = 20
Variables ¶
This section is empty.
Functions ¶
func GenerateBytes ¶
func GenerateBytes(faker *gofakeit.Faker, hints BytesHints) []byte
func GenerateFixed32 ¶
func GenerateFixed32(faker *gofakeit.Faker, hints Fixed32Hints) uint32
func GenerateFixed64 ¶
func GenerateFixed64(faker *gofakeit.Faker, hints Fixed64Hints) uint64
func GenerateFloat32 ¶
func GenerateFloat32(faker *gofakeit.Faker, hints Float32Hints) float32
func GenerateFloat64 ¶
func GenerateFloat64(faker *gofakeit.Faker, hints Float64Hints) float64
func GenerateInt32 ¶
func GenerateInt32(faker *gofakeit.Faker, hints Int32Hints) int32
func GenerateInt64 ¶
func GenerateInt64(faker *gofakeit.Faker, hints Int64Hints) int64
func GenerateSFixed64 ¶
func GenerateSFixed64(faker *gofakeit.Faker, hints SFixed64Hints) int64
func GenerateSFixedInt32 ¶
func GenerateSFixedInt32(faker *gofakeit.Faker, hints SFixedInt32Hints) int32
func GenerateSInt32 ¶
func GenerateSInt32(faker *gofakeit.Faker, hints SInt32Hints) int32
func GenerateSInt64 ¶
func GenerateSInt64(faker *gofakeit.Faker, hints SInt64Hints) int64
func GenerateString ¶
func GenerateString(faker *gofakeit.Faker, hints StringHints) string
func GenerateUInt32 ¶
func GenerateUInt32(faker *gofakeit.Faker, hints UInt32Hints) uint32
func GenerateUInt64 ¶
func GenerateUInt64(faker *gofakeit.Faker, hints UInt64Hints) uint64
func NewDataGenerator ¶
func NewDataGenerator() *dataGenerator
Types ¶
type BytesHints ¶
type DataGenerator ¶
type Fixed32Hints ¶
type Fixed32Hints struct {
Rules *validate.Fixed32Rules
}
type Fixed64Hints ¶
type Fixed64Hints struct {
Rules *validate.Fixed64Rules
}
type Float32Hints ¶
type Float32Hints struct {
Rules *validate.FloatRules
}
type Float64Hints ¶
type Float64Hints struct {
Rules *validate.DoubleRules
}
type Int32Hints ¶
type Int32Hints struct {
Rules *validate.Int32Rules
}
type Int64Hints ¶
type Int64Hints struct {
Rules *validate.Int64Rules
}
type SFixed64Hints ¶
type SFixed64Hints struct {
Rules *validate.SFixed64Rules
}
type SFixedInt32Hints ¶
type SFixedInt32Hints struct {
Rules *validate.SFixed32Rules
}
type SInt32Hints ¶
type SInt32Hints struct {
Rules *validate.SInt32Rules
}
type SInt64Hints ¶
type SInt64Hints struct {
Rules *validate.SInt64Rules
}
type StringHints ¶
type UInt32Hints ¶
type UInt32Hints struct {
Rules *validate.UInt32Rules
}
type UInt64Hints ¶
type UInt64Hints struct {
Rules *validate.UInt64Rules
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
fauxrpc
command
|
|
|
example
|
|
|
generated-faux-server
module
|
|
|
generated-mocks
module
|
|
|
private
|
|
|
testcontainers
module
|
Click to show internal directories.
Click to hide internal directories.
