adding helper interfaces

This commit is contained in:
Will Charczuk 2016-07-18 14:53:29 -07:00
parent 2603c67e10
commit e2cf11729b

View File

@ -21,3 +21,15 @@ type LastValueProvider interface {
type BoundedLastValueProvider interface {
GetBoundedLastValue(index int) (x, y1, y2 float64)
}
// FullValueProvider is an interface that combines `ValueProvider` and `LastValueProvider`
type FullValueProvider interface {
ValueProvider
LastValueProvider
}
// FullBoundedValueProvider is an interface that combines `ValueProvider` and `LastValueProvider`
type FullBoundedValueProvider interface {
ValueProvider
LastValueProvider
}