Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type MovieService ¶
type MovieService interface { GetAll(ctx context.Context) ([]Movie, error) GetByID(ctx context.Context, id string) (Movie, error) Create(ctx context.Context, m *Movie) error Update(ctx context.Context, id string, m Movie) error Delete(ctx context.Context, id string) error }
func NewMovieService ¶
func NewMovieService(collection *mongo.Collection) MovieService
Click to show internal directories.
Click to hide internal directories.