Documentation ¶
Index ¶
Constants ¶
View Source
const CreateTableBlock = `` /* 273-byte string literal not displayed */
View Source
const CreateTableEpisode = `` /* 321-byte string literal not displayed */
View Source
const CreateTableHeader = `` /* 192-byte string literal not displayed */
View Source
const CreateTableNewsletter = `` /* 201-byte string literal not displayed */
View Source
const CreateTableSubscriber = `` /* 198-byte string literal not displayed */
View Source
const CreateTableSubscription = `` /* 401-byte string literal not displayed */
View Source
const CreateTableUser = `` /* 261-byte string literal not displayed */
View Source
const DeleteTableBlock = `
DROP TABLE IF EXISTS Block;
`
View Source
const DeleteTableEpisode = `
DROP TABLE IF EXISTS Episode;
`
View Source
DROP TABLE IF EXISTS Footer;
`
View Source
const DeleteTableHeader = `
DROP TABLE IF EXISTS Header;
`
View Source
const DeleteTableNewsletter = `
DROP TABLE IF EXISTS Newsletter;
`
View Source
const DeleteTableSubscriber = `DROP TABLE IF EXISTS Subscriber;`
View Source
const DeleteTableSubscription = `DROP TABLE IF EXISTS Subscription;`
View Source
const DeleteTableUser = `
DROP TABLE IF EXISTS User;
`
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Episode ¶
type Header ¶
type Newsletter ¶
type Newsletter struct { NewsletterID string `db:"NewsletterID" json:"newsletterId"` Name string `db:"Name" json:"name"` }
func GetNewsletter ¶
func GetNewsletter(db *sqlx.DB, newsletterId string) (*Newsletter, error)
type Subscriber ¶
type Subscriber struct { SubscriberID string `db:"SubscriberID" json:"subscriberId"` Email string `db:"Email" json:"email"` }
func GetSubscriber ¶
func GetSubscriber(db *sqlx.DB, subscriberId string) (*Subscriber, error)
type Subscription ¶
type Subscription struct { NewsletterID string `db:"NewsletterID" json:"newsletterID"` SubscriberID string `db:"SubscriberID" json:"subscriberID"` NewsletterShortname string `db:"NewsletterShortname" json:"newsletterShortname"` NewsletterKey string `db:"NewsletterKey" json:"newsletterKey"` SubscriberKey string `db:"SubscriberKey" json:"subscriberKey"` StartEpisodeID int `db:"StartEpisodeID" json:"startEpisodeID"` EndEpisodeID int `db:"EndEpisodeID" json:"endEpisodeID"` }
func GetSubscription ¶
Click to show internal directories.
Click to hide internal directories.