Documentation ¶
Index ¶
- type Storage
- func (s *Storage) CreateActor(actor *entity.NewActor) (int, error)
- func (s *Storage) CreateMovie(movie *entity.NewMovie) (int, error)
- func (s *Storage) DeleteActor(id int) error
- func (s *Storage) DeleteMovie(id int) error
- func (s *Storage) GetActorById(id int) (*entity.Actor, error)
- func (s *Storage) GetActors(limit, offset int) ([]entity.Actor, error)
- func (s *Storage) GetMovieById(id int) (*entity.Movie, error)
- func (s *Storage) GetMovies(limit, offset int, orderBy string, asc bool) ([]entity.Movie, error)
- func (s *Storage) GetUserRole(username string, password string) (string, error)
- func (s *Storage) SearchMovies(title, actorName string, limit, offset int) ([]entity.Movie, error)
- func (s *Storage) UpdateActor(id int, actor *entity.Actor) error
- func (s *Storage) UpdateMovie(id int, movie *entity.Movie) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) DeleteActor ¶
func (*Storage) DeleteMovie ¶
func (*Storage) GetUserRole ¶
func (*Storage) SearchMovies ¶
Click to show internal directories.
Click to hide internal directories.