stats

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ONEDAY int64 = 86400

Variables

This section is empty.

Functions

func CountAccountsForDateRange

func CountAccountsForDateRange(ctx context.Context, accounts_db database.AccountsDatabase, start int64, end int64) (int64, error)

func CountBlocksForDateRange

func CountBlocksForDateRange(ctx context.Context, blocks_db database.BlocksDatabase, start int64, end int64) (int64, error)

func CountBoostsForDateRange

func CountBoostsForDateRange(ctx context.Context, boosts_db database.BoostsDatabase, start int64, end int64) (int64, error)

func CountDeliveriesForDateRange

func CountDeliveriesForDateRange(ctx context.Context, deliveries_db database.DeliveriesDatabase, start int64, end int64) (int64, error)

func CountFollowersForDateRange

func CountFollowersForDateRange(ctx context.Context, followers_db database.FollowersDatabase, start int64, end int64) (int64, error)

func CountFollowingForDateRange

func CountFollowingForDateRange(ctx context.Context, following_db database.FollowingDatabase, start int64, end int64) (int64, error)

func CountLikesForDateRange

func CountLikesForDateRange(ctx context.Context, likes_db database.LikesDatabase, start int64, end int64) (int64, error)

func CountMessagesForDateRange

func CountMessagesForDateRange(ctx context.Context, messages_db database.MessagesDatabase, start int64, end int64) (int64, error)

func CountNotesForDateRange

func CountNotesForDateRange(ctx context.Context, notes_db database.NotesDatabase, start int64, end int64) (int64, error)

func CountPostsForDateRange

func CountPostsForDateRange(ctx context.Context, posts_db database.PostsDatabase, start int64, end int64) (int64, error)

Types

type Counts

type Counts struct {
	Date       string `json:"date"`
	Location   string `json:"location"`
	Accounts   int64  `json:"accounts"`
	Blocks     int64  `json:"blocks"`
	Boosts     int64  `json:"boosts"`
	Deliveries int64  `json:"deliveries"`
	Followers  int64  `json:"followers"`
	Following  int64  `json:"following"`
	Likes      int64  `json:"likes"`
	Messages   int64  `json:"messages"`
	Notes      int64  `json:"notes"`
	Posts      int64  `json:"posts"`
}

func CountsForDate

func CountsForDate(ctx context.Context, opts *CountsForDateOptions) (*Counts, error)

type CountsForDateOptions

type CountsForDateOptions struct {
	Date               string
	Location           string
	AccountsDatabase   database.AccountsDatabase
	BlocksDatabase     database.BlocksDatabase
	BoostsDatabase     database.BoostsDatabase
	DeliveriesDatabase database.DeliveriesDatabase
	FollowersDatabase  database.FollowersDatabase
	FollowingDatabase  database.FollowingDatabase
	LikesDatabase      database.LikesDatabase
	MessagesDatabase   database.MessagesDatabase
	NotesDatabase      database.NotesDatabase
	PostsDatabase      database.PostsDatabase
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL