Versions in this module Expand all Collapse all v12 v12.1.9 Aug 12, 2022 Changes in this version + var ErrNotFound = errors.New("not found") + type Movie struct + Cover string + Description string + ID primitive.ObjectID + Name string + type MovieService interface + Create func(ctx context.Context, m *Movie) error + Delete func(ctx context.Context, id string) error + GetAll func(ctx context.Context) ([]Movie, error) + GetByID func(ctx context.Context, id string) (Movie, error) + Update func(ctx context.Context, id string, m Movie) error + func NewMovieService(collection *mongo.Collection) MovieService