typ

package
v0.0.0-...-4b2efa1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNewFloat4

func GetNewFloat4(table *metadata.Table) func(string) mxmock.Type

func GetNewFloat8

func GetNewFloat8(table *metadata.Table) func(string) mxmock.Type

func GetNewInt4

func GetNewInt4(table *metadata.Table) func(string) mxmock.Type

func GetNewInt8

func GetNewInt8(table *metadata.Table) func(string) mxmock.Type

func GetNewJSON

func GetNewJSON(table *metadata.Table) func(string) mxmock.Type

func GetNewVarChar

func GetNewVarChar(table *metadata.Table) func(string) mxmock.Type

func Init

func Init(table *metadata.Table)

Types

type Float4

type Float4 struct {
	mxmock.BaseType
	// contains filtered or unexported fields
}

func (*Float4) Random

func (f4 *Float4) Random(keys ...string) string

func (*Float4) ValueRange

func (f4 *Float4) ValueRange() map[string]*mxmock.ValueRange

type Float8

type Float8 struct {
	mxmock.BaseType
	// contains filtered or unexported fields
}

func (*Float8) Random

func (f8 *Float8) Random(keys ...string) string

func (*Float8) ValueRange

func (f8 *Float8) ValueRange() map[string]*mxmock.ValueRange

type Int4

type Int4 struct {
	mxmock.BaseType
	// contains filtered or unexported fields
}

func (*Int4) Random

func (i4 *Int4) Random(keys ...string) string

func (*Int4) ValueRange

func (i4 *Int4) ValueRange() map[string]*mxmock.ValueRange

type Int8

type Int8 struct {
	mxmock.BaseType
	// contains filtered or unexported fields
}

func (*Int8) Random

func (i8 *Int8) Random(keys ...string) string

func (*Int8) ValueRange

func (i8 *Int8) ValueRange() map[string]*mxmock.ValueRange

type JSON

type JSON struct {
	mxmock.BaseType

	Name string `json:"name"`
	Age  int    `json:"number" fake:"{number:1,100}"`
	// contains filtered or unexported fields
}

func (*JSON) Keys

func (j *JSON) Keys() []string

func (*JSON) Random

func (j *JSON) Random(keys ...string) string

func (*JSON) ValueRange

func (j *JSON) ValueRange() map[string]*mxmock.ValueRange

type VarChar

type VarChar struct {
	mxmock.VarChar
	// contains filtered or unexported fields
}

func (*VarChar) Random

func (vc *VarChar) Random(keys ...string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL