Documentation
¶
Index ¶
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 NewSettingsUpdatedEvent ¶
func NewSettingsUpdatedEvent() Event
func NewWebhooksUpdatedEvent ¶
func NewWebhooksUpdatedEvent() Event
Click to show internal directories.
Click to hide internal directories.