Documentation ¶
Index ¶
- Variables
- func AnalyticsMiddleware(h http.HandlerFunc) (http.HandlerFunc, error)
- func WithUser(ctx context.Context, u *User) context.Context
- type Article
- type Cache
- type Edition
- type Element
- type HTTPPublisher
- type Homepage
- type Layout
- type PubSubMessage
- type PubSubPublisher
- type Publisher
- type Source
- type User
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AnalyticsMiddleware ¶
func AnalyticsMiddleware(h http.HandlerFunc) (http.HandlerFunc, error)
Types ¶
type Article ¶
type Article struct { ID string Title string Description string CompressedContent []byte Content []Element ImageURL string Link string Author string Source Source Timestamp time.Time TS string Layout Layout // contains filtered or unexported fields }
func LayoutArticles ¶
func (*Article) SetHTMLContent ¶
type Cache ¶
type Edition ¶
type HTTPPublisher ¶
type PubSubMessage ¶
type PubSubMessage struct { Message pubsub.Message `json:"message"` Subscription string `json:"subscription"` }
PubSubMessage is the payload of a Pub/Sub event.
type PubSubPublisher ¶
type PubSubPublisher struct {
// contains filtered or unexported fields
}
type Source ¶
type Source struct { ID string OwnerID string Name string URL string FeedURL string Categories []string DisableFetch bool }
func GetSources ¶
func GetSources() []Source
Click to show internal directories.
Click to hide internal directories.