internal

package
v0.0.0-...-42ff6b3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package usecase implements application business logic. Each logic group in own file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenreRepo

type GenreRepo interface {
	GetAll(context.Context) ([]entity.Genre, error)
	GetById(context.Context, string) (entity.Genre, error)
	Create(context.Context, string) error
	Delete(context.Context, string) error
	Update(context.Context, entity.Genre) error
}

GenreRepo -.

type Movie

type Movie interface {
	GetById(context.Context, string) (entity.Movie, error)
	GetAll(context.Context) ([]entity.Movie, error)
	Create(context.Context, string, string) error

	GetGenreById(context.Context, string) (entity.Genre, error)
	GetAllGenre(context.Context) ([]entity.Genre, error)
	AddGenre(context.Context, string) error
}

Movie -.

type MovieRepo

type MovieRepo interface {
	GetAll(context.Context) ([]entity.Movie, error)
	GetById(context.Context, string) (entity.Movie, error)
	Create(context.Context, entity.Movie) error
	Update(context.Context, string, entity.Movie) error
	Delete(context.Context, string) error
}

MovieRepo -.

type WebAPI

type WebAPI interface {
}

MovieWebAPI -.

Directories

Path Synopsis
Package app configures and runs application.
Package app configures and runs application.
controller
http/v1
Package v1 implements routing paths.
Package v1 implements routing paths.
Package entity defines main entities for business logic (services), data base mapping and HTTP response objects if suitable.
Package entity defines main entities for business logic (services), data base mapping and HTTP response objects if suitable.

Jump to

Keyboard shortcuts

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