recommender

package
v0.0.1-beta.7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdleInstance

type IdleInstance struct {
	*recommenderpb.Recommendation
}

func (*IdleInstance) GetCost

func (i *IdleInstance) GetCost() float64

type IdleInstances

type IdleInstances []*IdleInstance

func (IdleInstances) GetCost

func (i IdleInstances) GetCost() float64

func (IdleInstances) GetCount

func (i IdleInstances) GetCount() int

type Service

type Service interface {
	Recommendation(ctx context.Context, recommendation string) (IdleInstances, error)
	Table(recommendations *IdleInstances) table.Writer
	Close() error
}

func New

func New(ctx context.Context, project string, options []option.ClientOption) (Service, error)

Jump to

Keyboard shortcuts

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