axis

package
v1.23.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Constraint

type Constraint interface {
	Validate(value int64, points map[string]*int64) bool
	Behavior() ConstraintBehavior
}

func GreaterThan

func GreaterThan(reference string, behavior ConstraintBehavior) Constraint

func LowerThan

func LowerThan(reference string, behavior ConstraintBehavior) Constraint

type ConstraintBehavior

type ConstraintBehavior int
const (
	Reject ConstraintBehavior = iota
	Retry
	Nullify
)

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(originName string, originValue int64) *Generator

func (*Generator) Generate

func (g *Generator) Generate(rng *rand.Rand) map[string]*int64

func (*Generator) Origin

func (g *Generator) Origin() string

func (*Generator) SetPoint

func (g *Generator) SetPoint(name string, reference string, min, max int64, constraints ...Constraint)

type Range

type Range struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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