service

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateCoverRequest

type GenerateCoverRequest struct {
	Username string `validate:"required" mod:"no_space"`
	Type     string `validate:"required,oneof=anime manga" mod:"no_space,lcase"`
	Style    string `validate:"style" mod:"trim,unescape"`
}

GenerateCoverRequest is request model for generate cover.

type Service

type Service interface {
	GenerateCover(ctx context.Context, data GenerateCoverRequest) (css string, code int, err error)
}

Service contains functions for service.

func New

func New(mal repository.Repository) Service

New to create new service.

Jump to

Keyboard shortcuts

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