Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPointsSize = 5 DefaultMaxRetry = 200 )
Variables ¶
View Source
var ErrRejectedGeneration = errors.New("rejected timeline generation, can't find a value that satisfy constraint")
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, epsilon int64, behavior ConstraintBehavior) Constraint
func LowerThan ¶
func LowerThan(reference string, epsilon int64, behavior ConstraintBehavior) Constraint
type ConstraintBehavior ¶
type ConstraintBehavior int
const ( Reject ConstraintBehavior = iota Nullify Replace )
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) SetMaxRetry ¶
Click to show internal directories.
Click to hide internal directories.