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) Dispatch(ctx context.Context) (*postmand.DeliveryAttempt, 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
- func (d DeliveryAttempt) Create(ctx context.Context, deliveryAttempt *postmand.DeliveryAttempt) error
- func (d DeliveryAttempt) Get(ctx context.Context, getOptions postmand.RepositoryGetOptions) (*postmand.DeliveryAttempt, error)
- func (d DeliveryAttempt) List(ctx context.Context, listOptions postmand.RepositoryListOptions) ([]*postmand.DeliveryAttempt, error)
- 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
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.DeliveryRepository interface.
func NewDelivery ¶
NewDelivery will create an implementation of postmand.DeliveryRepository.
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.DeliveryAttemptRepository interface.
func NewDeliveryAttempt ¶
func NewDeliveryAttempt(db *sqlx.DB) *DeliveryAttempt
NewDeliveryAttempt returns postmand.DeliveryAttempt with db connection.
func (DeliveryAttempt) Create ¶
func (d DeliveryAttempt) Create(ctx context.Context, deliveryAttempt *postmand.DeliveryAttempt) error
Create postmand.DeliveryAttempt on database.
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.MigrationRepository interface.
func NewMigration ¶
NewMigration will create an implementation of postmand.MigrationRepository.
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
Ping implements postmand.PingRepository interface.
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
Webhook implements postmand.WebhookRepository interface.
func NewWebhook ¶
NewWebhook will create an implementation of postmand.WebhookRepository.
func (Webhook) Get ¶
func (w Webhook) Get(ctx context.Context, getOptions postmand.RepositoryGetOptions) (*postmand.Webhook, error)
Get returns postmand.Webhook by options filter.