Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepo ¶
func NewRepo(db *mongo.Database) *Repository
func (*Repository) Delete ¶
func (r *Repository) Delete(ctx context.Context, sub Subscriber) error
func (*Repository) GetAll ¶
func (r *Repository) GetAll(ctx context.Context) ([]Subscriber, error)
func (*Repository) Save ¶
func (r *Repository) Save(ctx context.Context, sub Subscriber) error
type Subscriber ¶
Click to show internal directories.
Click to hide internal directories.