Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertService ¶
type Deps ¶
type Deps struct {
TemplateService TemplateService
RuleService RuleService
AlertService AlertService
ProviderService ProviderService
NamespaceService NamespaceService
ReceiverService ReceiverService
SubscriptionService SubscriptionService
NotificationService NotificationService
}
type NamespaceService ¶
type NotificationService ¶
type NotificationService interface {
DispatchToReceiver(ctx context.Context, n notification.Notification, receiverID uint64) error
DispatchToSubscribers(ctx context.Context, n notification.Notification) error
}
type ProviderService ¶
type ReceiverService ¶
type ReceiverService interface {
List(ctx context.Context, flt receiver.Filter) ([]receiver.Receiver, error)
Create(ctx context.Context, rcv *receiver.Receiver) error
Get(ctx context.Context, id uint64) (*receiver.Receiver, error)
Update(ctx context.Context, rcv *receiver.Receiver) error
Delete(ctx context.Context, id uint64) error
}
type RuleService ¶
type SubscriptionService ¶
type SubscriptionService interface {
List(context.Context, subscription.Filter) ([]subscription.Subscription, error)
Create(context.Context, *subscription.Subscription) error
Get(context.Context, uint64) (*subscription.Subscription, error)
Update(context.Context, *subscription.Subscription) error
Delete(context.Context, uint64) error
}
type TemplateService ¶
type TemplateService interface {
Upsert(context.Context, *template.Template) error
List(context.Context, template.Filter) ([]template.Template, error)
GetByName(context.Context, string) (*template.Template, error)
Delete(context.Context, string) error
Render(context.Context, string, map[string]string) (string, error)
}
Click to show internal directories.
Click to hide internal directories.