request

package
v0.0.0-...-6bc2f21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	Image        string         `json:"image" default:"default"`
	Dx           int            `json:"dx" default:"4"`
	Dy           int            `json:"dy" default:"4"`
	Size         int            `json:"size" default:"0"`
	URL          string         `json:"url" default:"https://example.com"`
	Version      coding.Version `json:"version" default:"6"`
	Mask         coding.Mask    `json:"mask" default:"2"`
	RandControl  bool           `json:"randcontrol" default:"false"`
	Dither       bool           `json:"dither" default:"false"`
	OnlyDataBits bool           `json:"onlydatabits" default:"false"`
	SaveControl  bool           `json:"savecontrol" default:"false"`
	Seed         string         `json:"seed"`
	Scale        int            `json:"scale" default:"8"`
	Rotation     int            `json:"rotation" default:"0"` // range in [0,3]
}

func NewOperation

func NewOperation() (*Operation, error)

func (*Operation) GetMask

func (op *Operation) GetMask() coding.Mask

func (*Operation) GetRotation

func (op *Operation) GetRotation() int

func (*Operation) GetScale

func (op *Operation) GetScale() int

func (*Operation) GetSeed

func (op *Operation) GetSeed() int64

func (*Operation) GetVersion

func (op *Operation) GetVersion() coding.Version

func (*Operation) SetDefaults

func (op *Operation) SetDefaults()

type Share

type Share struct {
	Image string `json:"image"`
}

Jump to

Keyboard shortcuts

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