Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyByIDResponse ¶
type APIKeyByIDResponse struct {
UID string `json:"uid"`
Name string `json:"name"`
Role auth.Role `json:"role"`
Type datastore.KeyType `json:"key_type"`
ExpiresAt primitive.DateTime `json:"expires_at,omitempty"`
CreatedAt primitive.DateTime `json:"created_at,omitempty"`
UpdatedAt primitive.DateTime `json:"updated_at,omitempty"`
DeletedAt primitive.DateTime `json:"deleted_at,omitempty"`
}
type APIKeyResponse ¶
type Application ¶
type DashboardSummary ¶
type DashboardSummary struct {
EventsSent uint64 `json:"events_sent" bson:"events_sent"`
Applications int `json:"apps" bson:"apps"`
Period string `json:"period" bson:"period"`
PeriodData *[]datastore.EventInterval `json:"event_data,omitempty" bson:"event_data"`
}
type DeliveryAttempt ¶
type DeliveryAttempt struct {
MessageID string `json:"msg_id" bson:"msg_id"`
APIVersion string `json:"api_version" bson:"api_version"`
IPAddress string `json:"ip" bson:"ip"`
Status string `json:"status" bson:"status"`
CreatedAt int64 `json:"created_at" bson:"created_at"`
MessageResponse MessageResponse `json:"response" bson:"response"`
}
type Event ¶
type Event struct {
AppID string `json:"app_id" bson:"app_id" valid:"required~please provide an app id"`
EventType string `json:"event_type" bson:"event_type" valid:"required~please provide an event type"`
// Data is an arbitrary JSON value that gets sent as the body of the
// webhook to the endpoints
Data json.RawMessage `json:"data" bson:"data" valid:"required~please provide your data"`
}
type Group ¶
type Group struct {
Name string `json:"name" bson:"name" valid:"required~please provide a valid name"`
LogoURL string `json:"logo_url" bson:"logo_url" valid:"url~please provide a valid logo url,optional"`
Config datastore.GroupConfig
}
type MessageResponse ¶
type MessageResponse struct {
Status int `json:"status" bson:"status"`
Data json.RawMessage `json:"data" bson:"data"`
}
type PortalAPIKeyResponse ¶ added in v0.4.10
type WebhookRequest ¶
type WebhookRequest struct {
Event string `json:"event" bson:"event"`
Data json.RawMessage `json:"data" bson:"data"`
}
Click to show internal directories.
Click to hide internal directories.