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 -.
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. |
Click to show internal directories.
Click to hide internal directories.