selection

package
v0.0.0-...-1aaf8f9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 7 Imported by: 1

README

Selection

Takes a request + cluster and selects potentially alternate resources via a resource map. The selection algorithm will eventually be the multi-armed bandit which we call Octo Fox.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selector

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

func NewSelector

func NewSelector(db *sql.DB) *Selector

func (*Selector) GetMappedResources

func (s *Selector) GetMappedResources(clusterId int, res string) (string, error)

func (*Selector) SelectResource

func (s *Selector) SelectResource(clusterId int, encodedMappedResources string) (string, error)

Jump to

Keyboard shortcuts

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