policy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: AGPL-3.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValuePolicy

type ValuePolicy interface {
	Value(ts int64) float64
}

func ParseValuePolicy

func ParseValuePolicy(p string) (ValuePolicy, error)

type ValuePolicyDailySine

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

ValuePolicyDailySine mimics a daily sinus-shaped trend e.g. traffic to a website

func NewDailySine

func NewDailySine(args string) (ValuePolicyDailySine, error)

func (ValuePolicyDailySine) Value

func (v ValuePolicyDailySine) Value(ts int64) float64

type ValuePolicyMultiple

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

func (*ValuePolicyMultiple) Value

func (v *ValuePolicyMultiple) Value(ts int64) float64

type ValuePolicyRandom

type ValuePolicyRandom struct {
}

func (*ValuePolicyRandom) Value

func (v *ValuePolicyRandom) Value(ts int64) float64

type ValuePolicySingle

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

func (*ValuePolicySingle) Value

func (v *ValuePolicySingle) Value(ts int64) float64

type ValuePolicyTimestamp

type ValuePolicyTimestamp struct {
}

func (*ValuePolicyTimestamp) Value

func (v *ValuePolicyTimestamp) Value(ts int64) float64

Jump to

Keyboard shortcuts

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