types

package
v0.0.0-...-aebc9fb Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilterTypeMonochrome = "monochrome"
	FilterTypeScale      = "scale"
)
View Source
const (
	JobStatusCreated = iota
	JobStatusActive
	JobStatusCompleted
	JobStatusFailed
	JobStatusArchived
)

Variables

Functions

This section is empty.

Types

type Filter

type Filter interface {
	GetName() string
	GetApplied() bool
	GetExecutionTime() int64
}

type FilterWithPercentage

type FilterWithPercentage struct {
	NamedFilter
	Percentage int `json:"percentage"`
}

FilterWithPercentage

type Filters

type Filters struct {
	Filters    []Filter          `json:"-"`
	RawFilters []json.RawMessage `json:"filters"`
}

Filters

func UnmarshalFilters

func UnmarshalFilters(r io.Reader) (Filters, error)

Marshal/Unmarshal

type Job

type Job struct {
	FileName string
	Key      string
	Created  int64
	Status   JobStatus
}

type JobStatus

type JobStatus int

type NamedFilter

type NamedFilter struct {
	Name          string `json:"name"`
	Applied       bool   `json:"applied"`
	ExecutionTime int64  `json:"execution_time"`
}

NamedFilter

func (NamedFilter) GetApplied

func (f NamedFilter) GetApplied() bool

func (NamedFilter) GetExecutionTime

func (f NamedFilter) GetExecutionTime() int64

func (NamedFilter) GetName

func (f NamedFilter) GetName() string

Jump to

Keyboard shortcuts

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