package
Version:
v0.0.0-...-a66c768
Opens a new window with list of versions in this module.
Published: Mar 12, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Destination struct {
ID uint `gorm:"primary_key"`
CreatedAt time.Time
UpdatedAt time.Time
ExternalIdentifier string `gorm:"unique_index:idx_destination_identifier" json:"external_identifier"`
DestinationType string `gorm:"unique_index:idx_destination_identifier" json:"destination_type"`
}
type Subscription struct {
ID uint `gorm:"primary_key"`
CreatedAt time.Time
UpdatedAt time.Time
Destination Destination
SubscriptionType SubscriptionType
DestinationID uint `gorm:"unique_index:idx_destination_subtype"`
SubscriptionTypeID uint `gorm:"unique_index:idx_destination_subtype"`
LastItem int64
}
type SubscriptionType struct {
ID uint `gorm:"primary_key"`
CreatedAt time.Time
UpdatedAt time.Time
Type string `gorm:"unique_index:idx_type_tags" json:"type"`
Tags string `gorm:"unique_index:idx_type_tags" json:"tags"`
Subscriptions []Subscription
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.