Documentation ¶
Index ¶
- Variables
- func PaletteQueue(ctx context.Context, model string, cm *ColorMind, chanSize int) (chan *color.RGBA, chan error)
- type Color
- type ColorMind
- func (c *ColorMind) GetPalette(model string, p *Palette) (*Palette, error)
- func (c *ColorMind) GetPaletteWithContext(ctx context.Context, model string, p *Palette) (*Palette, error)
- func (c *ColorMind) ListModels() ([]string, error)
- func (c *ColorMind) ListModelsWithContext(ctx context.Context) ([]string, error)
- type Palette
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrURLParse = errors.New("parsing URL") ErrGet = errors.New("executing get request") ErrResponseStatus = errors.New("invalid response status") ErrReadBody = errors.New("reading response body") ErrParseBody = errors.New("parsing response body") ErrPost = errors.New("executing post request") ErrEmptyBody = errors.New("response has empty body") ErrValidation = errors.New("validation error") ErrEmptyPalette = errors.New("palette may not be empty") )
Functions ¶
Types ¶
type ColorMind ¶
func (*ColorMind) GetPalette ¶
func (*ColorMind) GetPaletteWithContext ¶
func (*ColorMind) ListModels ¶
Click to show internal directories.
Click to hide internal directories.