controller

package
v0.0.0-...-5c919d2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedColors = [][]int{

	{255, 0, 0},
	{0, 255, 0},
	{0, 0, 255},
	{255, 255, 255},
	{192, 192, 192},
	{128, 128, 128},
	{0, 0, 0},
	{128, 0, 0},
	{255, 255, 0},
	{128, 128, 0},
	{0, 128, 0},
	{0, 255, 255},
	{0, 128, 128},
	{0, 0, 125},
	{255, 0, 255},
	{128, 0, 128},
	{130, 0, 0},
}
View Source
var SupportedColorsName = map[string]bool{"Red": true, "Lime": true, "Blue": true, "White": true, "Silver": true,
	"Gray": true, "Black": true, "Maroon": true, "Yellow": true, "Olive": true, "Green": true, "Aqua": true, "Teal": true,
	"Navy": true, "Fuchsia": true, "Purple": true, "DarkRed": true, "Khaki": true, "Beige": true, "Brown": true, "Pink": true,
	"Orange": true}
View Source
var SupportedColorsNameList = []string{"Red", "Lime", "Blue", "White", "Silver",
	"Gray", "Black", "Maroon", "Yellow", "Olive", "Green", "Aqua", "Teal",
	"Navy", "Fuchsia", "Purple", "DarkRed"}

Functions

func ToColor

func ToColor(r int, g int, b int) string

Types

type VisionBody

type VisionBody struct {
	Url string `json:"url"`
}

type VisionObject

type VisionObject struct {
	Name     string `json:"name"`
	Color    string `json:"color"`
	Position string `json:"position"`
}

func (*VisionObject) CallVisionApi

func (u *VisionObject) CallVisionApi(c echo.Context) error

func (*VisionObject) GetClothes

func (u *VisionObject) GetClothes(c echo.Context) error

Jump to

Keyboard shortcuts

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