mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-03 06:42:19 +00:00
Initial Commit
This commit is contained in:
commit
4e9199bf3e
12 changed files with 267 additions and 0 deletions
18
internal/gomastodonstats/main.go
Normal file
18
internal/gomastodonstats/main.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package gomastodonstats
|
||||
|
||||
import "log"
|
||||
|
||||
func Run() {
|
||||
log.Println("Fetching counts")
|
||||
|
||||
// Get Counts
|
||||
metrics, err := getUserCounts()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// Write to DB
|
||||
persistMetrics(metrics)
|
||||
|
||||
// Output example
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue