processorOptions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimerModeNormal  = "normal"
	TimerModeReverse = "reverse"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CircleOptions

type CircleOptions struct {
	Radius      float64 `mapstructure:"radius"`
	StrokeWidth float64 `mapstructure:"strokeWidth"`
	FillColor   string  `mapstructure:"fillColor"`
	StrokeColor string  `mapstructure:"strokeColor"`
}

func NewCircleOptions

func NewCircleOptions() *CircleOptions

type ImageOptions

type ImageOptions struct {
	Data   string       `mapstructure:"data"`
	Width  int          `mapstructure:"width"`
	Height int          `mapstructure:"height"`
	Mask   *MaskOptions `mapstructure:"mask"`
}

func NewImageOptions

func NewImageOptions() *ImageOptions

type RectangleOptions

type RectangleOptions struct {
	Width         float64 `mapstructure:"width"`
	Height        float64 `mapstructure:"height"`
	RoundedRadius float64 `mapstructure:"roundedRadius"`
	StrokeWidth   float64 `mapstructure:"strokeWidth"`
	FillColor     string  `mapstructure:"fillColor"`
	StrokeColor   string  `mapstructure:"strokeColor"`
}

func NewRectangleOptions

func NewRectangleOptions() *RectangleOptions

type TextOptions

type TextOptions struct {
	Text            string  `mapstructure:"text"`
	Width           int     `mapstructure:"width"`
	Height          int     `mapstructure:"height"`
	FontSize        float64 `mapstructure:"fontSize"`
	Padding         float64 `mapstructure:"padding"`
	Radius          float64 `mapstructure:"radius"`
	TextColor       string  `mapstructure:"textColor"`
	BackgroundColor string  `mapstructure:"backgroundColor"`
}

func NewTextOptions

func NewTextOptions() *TextOptions

type TimerOptions

type TimerOptions struct {
	Mode        string `mapstructure:"mode"`
	IncludeZero bool   `mapstructure:"includeZero"`
	Format      string `mapstructure:"format"`
}

func NewTimerOptions

func NewTimerOptions() *TimerOptions

Jump to

Keyboard shortcuts

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