clustering

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: 8 Imported by: 1

README

Clustering

This package implements code to take a request and map it to a set of traits. It then calls bernardo to get a cluster id for the set of traits.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapRequestToCluster

func MapRequestToCluster(req *http.Request, bernardoUrl string) (int, error)

Types

type BernardoPayload

type BernardoPayload struct {
	Group  string                 `json:"group"`
	Scope  string                 `json:"scope"`
	Traits map[string]interface{} `json:"traits"`
}

Jump to

Keyboard shortcuts

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