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. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Selector func NewSelector(db *sql.DB) *Selector func (s *Selector) GetMappedResources(clusterId int, res string) (string, error) func (s *Selector) SelectResource(clusterId int, encodedMappedResources string) (string, error) 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) Source Files ¶ View all Source files selection.go Click to show internal directories. Click to hide internal directories.