package
0.0.0-20241001020002-41bf0e8e3af2
Repository: https://github.com/teamtenuki/twiddler.git
Documentation: pkg.go.dev

# Functions

FromContext retrieves a DB connection from context.
Init initialises the DB connection, so that is now possible to put it into context using NewContext function.
MustInit calls Init and panics on errors.
NewContext returns a context with DB connection in it.
ReportFor select a report for the given streamID and startedAt.
ReportLatestByUser yields a latest report for a particular user.
ReportObserveForStreams will update [observed_at] for every given stream.
ReportsAll yields all reports from the DB.
ReportStore stores a Report about a successful stream going live report.
ReportWasReported answers whether a certain stream was ever successfully reported.
RoomsAll yields all the rooms from the DB.
SetupDB creates necessary tables.

# Structs

RawReport is a Report with unparsed timestamps.
Report is a record of a successful report of a certain stream.
Room of a messenger that is waiting for reports on new streams.