chiefdelphi

package
v0.0.0-...-785bd95 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Daily getUsersPeriod = iota
	Weekly
	Monthly
	Quarterly
	Yearly
	All
)
View Source
const (
	LIKES_RECIEVED getUsersOrder = iota
	LIKES_GIVEN
	TOPIC_COUNT
	POST_COUNT
	TOPICS_ENTERED
	POSTS_READ
	DAYS_VISITED
)
View Source
const FIRST_POST_ID = 36001
View Source
const FIRST_TOPIC_ID = 29276

Variables

This section is empty.

Functions

func GetPosts

func GetPosts() chan Post

func GetPostsSince

func GetPostsSince(i int) chan Post

func GetTopics

func GetTopics() chan Topic

func GetTopicsSince

func GetTopicsSince(i int) chan Topic

func GetUsers

func GetUsers() chan User

Concurrently get all users in no particular order. This returns a channel and spawns a goroutine to make HTTP requests as needed.

Types

type Post

type Post struct {
	ID        int
	UserID    int
	TopicID   int
	Timestamp time.Time
	Body      string
}

func GetPost

func GetPost(ID int) Post

type Topic

type Topic struct {
	ID    int
	Title string
}

func GetTopic

func GetTopic(ID int) Topic

type User

type User struct {
	ID       int
	Username string
	Team     int
}

func GetUser

func GetUser(username string) User

Eagerly fetch a specific user by username.

Jump to

Keyboard shortcuts

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