core

package
v0.0.0-...-66838e3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Img

type Img struct {
	// contains filtered or unexported fields
}

func NewImg

func NewImg(r *St) *Img

func (*Img) Handle

func (c *Img) Handle(fPath string, w io.Writer, pars *types.ImgParsSt) error

type St

type St struct {
	Static *Static
	Img    *Img
	// contains filtered or unexported fields
}

func New

func New(
	lg logger.Lite,
	imgMaxWidth int,
	imgMaxHeight int,
	testing bool,
) *St

func (*St) Start

func (c *St) Start()

func (*St) StopAndWaitJobs

func (c *St) StopAndWaitJobs()

type Static

type Static struct {
	// contains filtered or unexported fields
}

func NewStatic

func NewStatic(r *St) *Static

func (*Static) Create

func (c *Static) Create(reqDir string, reqFileName string, reqFile io.Reader, noCut bool, unZip bool) (string, error)

func (*Static) Get

func (c *Static) Get(reqPath string, imgPars *types.ImgParsSt, download bool) (string, time.Time, []byte, error)

Jump to

Keyboard shortcuts

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