Documentation
¶
Index ¶
- Constants
- Variables
- func Module() fx.Option
- type Event
- func NewEvent(eventType smsgateway.PushEventType, data map[string]string) Event
- func NewMessageEnqueuedEvent() Event
- func NewMessagesExportRequestedEvent(since, until time.Time, types []smsgateway.IncomingMessageType, ...) Event
- func NewSettingsUpdatedEvent() Event
- func NewWebhooksUpdatedEvent() Event
- type Service
Constants ¶
View Source
const ( MetricEnqueuedTotal = "enqueued_total" MetricSentTotal = "sent_total" MetricFailedTotal = "failed_total" LabelEvent = "event" LabelDeliveryType = "delivery_type" LabelReason = "reason" DeliveryTypePush = "push" DeliveryTypeSSE = "sse" DeliveryTypeUnknown = "unknown" FailureReasonSerializationError = "serialization_error" FailureReasonPublishError = "publish_error" FailureReasonProviderFailed = "provider_failed" EventTypeUnknown = "unknown" )
Metric constants.
Variables ¶
View Source
var (
ErrValidationFailed = errors.New("validation failed")
)
Functions ¶
Types ¶
type Event ¶
type Event struct {
EventType smsgateway.PushEventType `json:"event_type"`
Data map[string]string `json:"data"`
}
func NewEvent ¶
func NewEvent(eventType smsgateway.PushEventType, data map[string]string) Event
func NewMessageEnqueuedEvent ¶
func NewMessageEnqueuedEvent() Event
func NewMessagesExportRequestedEvent ¶
func NewMessagesExportRequestedEvent( since, until time.Time, types []smsgateway.IncomingMessageType, triggerWebhooks *bool, ) Event
func NewSettingsUpdatedEvent ¶
func NewSettingsUpdatedEvent() Event
func NewWebhooksUpdatedEvent ¶
func NewWebhooksUpdatedEvent() Event
Click to show internal directories.
Click to hide internal directories.