Documentation ¶
Index ¶
- type DeviceTokenRepository
- func (x *DeviceTokenRepository) All(ctx context.Context, params *entities.DeviceTokenQueryParams) ([]*entities.DeviceToken, error)
- func (x *DeviceTokenRepository) Create(ctx context.Context, payload *entities.DeviceToken) error
- func (x *DeviceTokenRepository) Delete(ctx context.Context, id string) error
- type NotificationRepository
- func (x *NotificationRepository) Create(ctx context.Context, payload *entities.Notification) error
- func (x *NotificationRepository) Delete(ctx context.Context, id string) error
- func (x *NotificationRepository) GetAll(ctx context.Context, params *entities.NotificationQueryParams) ([]*entities.Notification, int, error)
- type TemplateRepository
- func (x *TemplateRepository) Create(ctx context.Context, payload *entities.Template) error
- func (x *TemplateRepository) Delete(ctx context.Context, id string) error
- func (x *TemplateRepository) Find(ctx context.Context, id string) (*entities.Template, error)
- func (x *TemplateRepository) FindByName(ctx context.Context, name string) (*entities.Template, error)
- func (x *TemplateRepository) Update(ctx context.Context, payload *entities.Template) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceTokenRepository ¶
type DeviceTokenRepository struct {
// contains filtered or unexported fields
}
func NewDeviceTokenRepository ¶
func NewDeviceTokenRepository(db *mongo.Database) DeviceTokenRepository
func (*DeviceTokenRepository) All ¶
func (x *DeviceTokenRepository) All(ctx context.Context, params *entities.DeviceTokenQueryParams) ([]*entities.DeviceToken, error)
func (*DeviceTokenRepository) Create ¶
func (x *DeviceTokenRepository) Create(ctx context.Context, payload *entities.DeviceToken) error
type NotificationRepository ¶
type NotificationRepository struct {
// contains filtered or unexported fields
}
func NewNotificationRepository ¶
func NewNotificationRepository(db *mongo.Database) NotificationRepository
func (*NotificationRepository) Create ¶
func (x *NotificationRepository) Create(ctx context.Context, payload *entities.Notification) error
func (*NotificationRepository) Delete ¶
func (x *NotificationRepository) Delete(ctx context.Context, id string) error
func (*NotificationRepository) GetAll ¶
func (x *NotificationRepository) GetAll(ctx context.Context, params *entities.NotificationQueryParams) ([]*entities.Notification, int, error)
type TemplateRepository ¶
type TemplateRepository struct {
// contains filtered or unexported fields
}
func NewTemplateRepository ¶
func NewTemplateRepository(db *mongo.Database) TemplateRepository
func (*TemplateRepository) Delete ¶
func (x *TemplateRepository) Delete(ctx context.Context, id string) error
func (*TemplateRepository) FindByName ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.