image

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	GetAnimeCard(id int) (image.Image, int, error)
	GetMangaCard(id int) (image.Image, int, error)
}

API to generate entry cards.

type Image

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

Image contains basic image generator config.

func New

func New(api loader.API) (i *Image, err error)

New to create new image generator.

func (*Image) GetAnimeCard

func (i *Image) GetAnimeCard(id int) (image.Image, int, error)

GetAnimeCard to generate anime card image.

func (*Image) GetMangaCard

func (i *Image) GetMangaCard(id int) (image.Image, int, error)

GetMangaCard to generate manga card image.

Jump to

Keyboard shortcuts

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