Documentation ¶
Index ¶
- Variables
- func Close() error
- func DeleleOneCallout(ctx context.Context, c *Callout) error
- func DeleteLink(ctx context.Context, l *Link) error
- func DeleteMedia(ctx context.Context, m *Media) error
- func Drop() error
- func ExportDB() (ret map[string]*bytes.Buffer, err error)
- func ExportDBToFiles(filepath string) ([]string, error)
- func ExportTable(table string) (*bytes.Buffer, error)
- func ExportTableToFile(filename, table string) error
- func InsertAbraxas(ctx context.Context, a *Abraxas) error
- func InsertCallout(ctx context.Context, c *Callout) error
- func InsertChannelStats(ctx context.Context, channel, user string, points int64) error
- func InsertGroup(ctx context.Context, gid, title string) error
- func InsertLink(ctx context.Context, l *Link) error
- func InsertMedia(ctx context.Context, m *Media) error
- func InsertStatistics(ctx context.Context, val, kind int64) error
- func InsertStatisticsKind(ctx context.Context, k *StatisticsKind) (int64, error)
- func Migrate() error
- func MigrateDown() error
- func MigrateTo(version uint) error
- func Open(filename string) error
- func SelectAbraxoidesAbraxas(ctx context.Context, gid string) ([]string, error)
- func SelectAbraxoidesAbraxasKind(ctx context.Context, gid string) ([][]string, error)
- func SelectAllCallouts(ctx context.Context, gid string) ([]string, error)
- func SelectLinkByURL(ctx context.Context, l *Link) error
- func SelectOneAbraxasByAbraxas(ctx context.Context, a *Abraxas) error
- func SelectOneCallout(ctx context.Context, c *Callout) error
- func SelectOneGroup(ctx context.Context, g *Group) error
- func SelectOneMediaByData(ctx context.Context, m *Media) error
- func SelectRandomMedia(ctx context.Context, m *Media) error
- type Abraxas
- type Callout
- type ChannelStats
- type Group
- type Link
- type Media
- type Statistics
- type StatisticsJoin
- type StatisticsKind
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ExportDBToFiles ¶
func ExportTableToFile ¶
func InsertChannelStats ¶
func InsertStatisticsKind ¶
func InsertStatisticsKind(ctx context.Context, k *StatisticsKind) (int64, error)
func MigrateDown ¶
func MigrateDown() error
func SelectAbraxoidesAbraxas ¶
Types ¶
type ChannelStats ¶
func SelectChannelStatsTimeSeries ¶
func SelectChannelStatsTimeSeries(ctx context.Context, channel string) ([]*ChannelStats, error)
type Link ¶
func SearchLinks ¶
type Media ¶
type Media struct { GID string `db:"gid"` Data string `db:"data"` Kind string `db:"kind"` Description string `db:"description"` }
func SelectAllMediaGroup ¶
type StatisticsJoin ¶
func SelectStatisticsLatest ¶
func SelectStatisticsLatest(ctx context.Context) ([]*StatisticsJoin, error)
type StatisticsKind ¶
func SelectStatisticKinds ¶
func SelectStatisticKinds(ctx context.Context) ([]*StatisticsKind, error)
Click to show internal directories.
Click to hide internal directories.