handler

package
v0.0.0-...-9d7767d Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ActorHandler

type ActorHandler interface {
	CreateActors(ctx *fiber.Ctx) error
	DeleteActors(ctx *fiber.Ctx) error
	UpdateActor(ctx *fiber.Ctx) error
	GetActor(ctx *fiber.Ctx) error
	GetActors(ctx *fiber.Ctx) error
	SearchActorByName(ctx *fiber.Ctx) error
}

func NewActorHandler

func NewActorHandler(svc service.ActorService, v *validator.Validate, l utils.Logger) ActorHandler

type AnimeHandler

type AnimeHandler interface {
	GetAnime(ctx *fiber.Ctx) error
	GetAnimes(ctx *fiber.Ctx) error
	CreateAnime(ctx *fiber.Ctx) error
	DeleteAnime(ctx *fiber.Ctx) error
	UpdateAnime(ctx *fiber.Ctx) error
}

func NewAnimeHandler

func NewAnimeHandler(svc service.AnimeService, v *validator.Validate, l utils.Logger) AnimeHandler

type Handler

type Handler struct {
	PingHandler      PingHandler
	MovieHandler     MovieHandler
	MovieActorHandle MovieActorHandler
	MovieTagHandler  MovieTagHandler
	ActorHandler     ActorHandler
	ImageHandler     ImageHandler
	TagHandler       TagHandler
	AnimeHandler     AnimeHandler
}

type ImageHandler

type ImageHandler interface {
	GetMovieImage(ctx *fiber.Ctx) error
	GetActorImage(ctx *fiber.Ctx) error
}

func NewImageHandler

func NewImageHandler(v *validator.Validate, s storage.Storage, l utils.Logger) ImageHandler

type MovieActorHandler

type MovieActorHandler interface {
	GetMovieActors(ctx *fiber.Ctx) error
	CreateMovieActors(ctx *fiber.Ctx) error
	DeleteMovieActors(ctx *fiber.Ctx) error
}

func NewMovieActorHandler

func NewMovieActorHandler(svc service.MovieActorService, v *validator.Validate, l utils.Logger) MovieActorHandler

type MovieHandler

type MovieHandler interface {
	CreateMovies(ctx *fiber.Ctx) error
	DeleteMovies(ctx *fiber.Ctx) error
	UpdateMovie(ctx *fiber.Ctx) error
	UploadCover(ctx *fiber.Ctx) error
	GetMovies(ctx *fiber.Ctx) error
	GetMovieInfo(ctx *fiber.Ctx) error
	SearchMovies(ctx *fiber.Ctx) error
}

func NewMovieHandler

func NewMovieHandler(svc service.MovieService, v *validator.Validate, s storage.Storage, l utils.Logger) MovieHandler

type MovieTagHandler

type MovieTagHandler interface {
	CreateMovieTags(ctx *fiber.Ctx) error
	DeleteMovieTags(ctx *fiber.Ctx) error
	GetMovieTags(ctx *fiber.Ctx) error
}

func NewMovieTagHandler

func NewMovieTagHandler(svc service.MovieTagService, v *validator.Validate, l utils.Logger) MovieTagHandler

type PingHandler

type PingHandler interface {
	Ping(ctx *fiber.Ctx) error
}

func NewPingHandler

func NewPingHandler(svc service.PingService) PingHandler

type TagHandler

type TagHandler interface {
	CreateTag(ctx *fiber.Ctx) error
	DeleteTag(ctx *fiber.Ctx) error
	UpdateTag(ctx *fiber.Ctx) error
	GetTags(ctx *fiber.Ctx) error
	SearchTags(ctx *fiber.Ctx) error
}

func NewTagHandler

func NewTagHandler(svc service.TagService, v *validator.Validate, l utils.Logger) TagHandler

Jump to

Keyboard shortcuts

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