model

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressionProfile

type CompressionProfile struct {
	Value int
}

type Imager

type Imager interface {
	Compress(CompressionProfile) (io.Reader, error)
	GetType() string
	GetFilename() string
}

type MarginProfile

type MarginProfile struct {
	X int
	Y int
}

type ModeProfile

type ModeProfile struct {
	Format      string
	Orientation string
	Width       int
	Height      int
}

type PDF

type PDF struct{}

type PNG

type PNG struct {
	Filename string
}

func (PNG) Compress

func (img PNG) Compress(p CompressionProfile) (io.Reader, error)

func (PNG) GetFilename

func (img PNG) GetFilename() string

func (PNG) GetType

func (PNG) GetType() string

Jump to

Keyboard shortcuts

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