texturecontroller

package
v0.0.0-...-77601ef Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHandler

func GetHandler(response http.ResponseWriter, request *http.Request, plData *config.PhotolumData, baseLog *logrus.Logger)

func PostHandler

func PostHandler(response http.ResponseWriter, request *http.Request, plData *config.PhotolumData, baseLog *logrus.Logger)

Types

type ColorGetResponse

type ColorGetResponse struct {
	TextureName string        `json:"texture_name"`
	TextureType string        `json:"texture_type"`
	Color       shading.Color `json:"color"`
}

type ColorRequest

type ColorRequest struct {
	Red   *float64 `json:"red"`
	Green *float64 `json:"green"`
	Blue  *float64 `json:"blue"`
}

type GetRequest

type GetRequest struct {
	TextureName *string `json:"texture_name"`
}

type ImageGetResponse

type ImageGetResponse struct {
	TextureName string  `json:"texture_name"`
	TextureType string  `json:"texture_type"`
	Gamma       float64 `json:"gamma"`
	Magnitude   float64 `json:"magnitude"`
	ImageData   string  `json:"image_data"`
}

type PostRequest

type PostRequest struct {
	TextureName *string       `json:"texture_name"`
	TextureType *string       `json:"texture_type"`
	Color       *ColorRequest `json:"color"`
	Gamma       *float64      `json:"gamma"`
	Magnitude   *float64      `json:"magnitude"`
	ImageData   *string       `json:"image_data"`
}

Jump to

Keyboard shortcuts

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