chore: rename
This commit is contained in:
parent
2ea6c705d9
commit
22713cf74b
1 changed files with 5 additions and 5 deletions
|
|
@ -9,20 +9,20 @@ import (
|
|||
"github.com/jinzhu/now"
|
||||
)
|
||||
|
||||
type timeseriesProvider struct{}
|
||||
type timeseriesPlugin struct{}
|
||||
|
||||
func init() {
|
||||
registry.AddCtx("timeseries", TimeSeriesFromConfig)
|
||||
}
|
||||
|
||||
// TimeSeriesFromConfig creates timeseries provider
|
||||
// TimeSeriesFromConfig creates timeseries plugin
|
||||
func TimeSeriesFromConfig(_ context.Context, _ map[string]interface{}) (Plugin, error) {
|
||||
return new(timeseriesProvider), nil
|
||||
return new(timeseriesPlugin), nil
|
||||
}
|
||||
|
||||
var _ StringGetter = (*timeseriesProvider)(nil)
|
||||
var _ StringGetter = (*timeseriesPlugin)(nil)
|
||||
|
||||
func (p *timeseriesProvider) StringGetter() (func() (string, error), error) {
|
||||
func (p *timeseriesPlugin) StringGetter() (func() (string, error), error) {
|
||||
return func() (string, error) {
|
||||
res := make(api.Rates, 48)
|
||||
ts := now.BeginningOfHour()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue