predict

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(cfg *Config, outlier dispatcher.Predictor) (http.Handler, error)

Types

type Config

type Config struct {
	RequestTimeout  time.Duration `envconfig:"SOD_PREDICT_REQUEST_TIMEOUT" default:"30s"`
	MaxDataItemsLen int           `envconfig:"SOD_PREDICT_MAX_DATA_ITEMS_LEN" default:"10"`
}

type DataPoint

type DataPoint struct {
	Vec       predictor.Point `json:"vector"`
	CreatedAt time.Time       `json:"createdAt"`
}

func (DataPoint) Point

func (d DataPoint) Point() predictor.Point

func (DataPoint) Time

func (d DataPoint) Time() time.Time

Jump to

Keyboard shortcuts

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