Documentation ¶
Index ¶
- type Delivery
- func (d Delivery) Create(ctx context.Context, delivery *postmand.Delivery) error
- func (d Delivery) Delete(ctx context.Context, id postmand.ID) error
- func (d Delivery) Get(ctx context.Context, getOptions postmand.RepositoryGetOptions) (*postmand.Delivery, error)
- func (d Delivery) List(ctx context.Context, listOptions postmand.RepositoryListOptions) ([]*postmand.Delivery, error)
- func (d Delivery) Update(ctx context.Context, delivery *postmand.Delivery) error
- type DeliveryAttempt
- type Migration
- type Ping
- type Webhook
- func (w Webhook) Create(ctx context.Context, webhook *postmand.Webhook) error
- func (w Webhook) Delete(ctx context.Context, id postmand.ID) error
- func (w Webhook) Get(ctx context.Context, getOptions postmand.RepositoryGetOptions) (*postmand.Webhook, error)
- func (w Webhook) List(ctx context.Context, listOptions postmand.RepositoryListOptions) ([]*postmand.Webhook, error)
- func (w Webhook) Update(ctx context.Context, webhook *postmand.Webhook) error
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Delivery ¶
type Delivery struct {
// contains filtered or unexported fields
}
Delivery implements postmand.DeliveryService interface.
func NewDelivery ¶
func NewDelivery(deliveryRepository postmand.DeliveryRepository) *Delivery
NewDelivery will create an implementation of postmand.DeliveryService.
func (Delivery) Get ¶
func (d Delivery) Get(ctx context.Context, getOptions postmand.RepositoryGetOptions) (*postmand.Delivery, error)
Get returns postmand.Delivery by options filter.
type DeliveryAttempt ¶
type DeliveryAttempt struct {
// contains filtered or unexported fields
}
DeliveryAttempt implements postmand.DeliveryAttemptService interface.
func NewDeliveryAttempt ¶
func NewDeliveryAttempt(deliveryAttemptRepository postmand.DeliveryAttemptRepository) *DeliveryAttempt
NewDeliveryAttempt will create an implementation of postmand.DeliveryAttemptService.
func (DeliveryAttempt) Get ¶
func (d DeliveryAttempt) Get(ctx context.Context, getOptions postmand.RepositoryGetOptions) (*postmand.DeliveryAttempt, error)
Get returns postmand.DeliveryAttempt by options filter.
func (DeliveryAttempt) List ¶
func (d DeliveryAttempt) List(ctx context.Context, listOptions postmand.RepositoryListOptions) ([]*postmand.DeliveryAttempt, error)
List returns a slice of postmand.DeliveryAttempt by options filter.
type Migration ¶
type Migration struct {
// contains filtered or unexported fields
}
Migration implements postmand.MigrationService interface.
func NewMigration ¶
func NewMigration(migrationRepo postmand.MigrationRepository, logger *zap.Logger) *Migration
NewMigration will create an implementation of postmand.MigrationService.
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
Ping implements postmand.PingService interface.
func NewPing ¶
func NewPing(pingRepository postmand.PingRepository) *Ping
NewPing will create an implementation of postmand.PingService.
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
Webhook implements postmand.WebhookService interface.
func NewWebhook ¶
func NewWebhook(webhookRepository postmand.WebhookRepository) *Webhook
NewWebhook will create an implementation of postmand.WebhookService.
func (Webhook) Get ¶
func (w Webhook) Get(ctx context.Context, getOptions postmand.RepositoryGetOptions) (*postmand.Webhook, error)
Get returns postmand.Webhook by options filter.
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker implements postmand.WorkerService interface.
func NewWorker ¶
func NewWorker(deliveryRepository postmand.DeliveryRepository, logger *zap.Logger, pollingInterval time.Duration) *Worker
NewWorker will create an implementation of postmand.WorkerService.