Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
func (*App) GetAdmin ¶
Return an Admin object that can render admin homepage panels and register all of the administrative pages.
func (*App) WithBaseURL ¶
type Event ¶
type Event struct {
// An Id is a basic auto-increment id within the local db
Id int
// Title is a title for the event
Title string
// SourceId is the id of this event in the upstream system, eg. a commit hash
// or a tweet ID
SourceId string `db:"source_id"`
// Timestamp is a unix timestamp of when this event happened
Timestamp time.Time
// Type is an indicator of where this came from, eg. "github" or "bluesky"
Type string
// Url is a permalink for this event
Url string
// Data is the full event in its original format, probably json
Data string
// SummaryRendered is a pre-rendered summary of the event, which gets displayed
// on the event stream list
SummaryRendered string `db:"summary_rendered"`
}
An Event is something like a post, a git commit, a photo upload, etc.
type EventService ¶
type EventService struct {
// contains filtered or unexported fields
}
An EventService manages events.
func NewEventService ¶
func NewEventService(db db.DB) *EventService
func (*EventService) InsertArchive ¶
func (s *EventService) InsertArchive(e *Event) error
Click to show internal directories.
Click to hide internal directories.