Documentation ¶
Overview ¶
Package accesstimes is responsible for saving the access times of users of topics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
DeleteUser removes all information of a user from the database and returns the number of removed data points. It does not ensure that no new data is written once the call returns.
func InitDB ¶
InitDB initialises the database. Must be called before any other function. This stub will return an error if no build tags are set.
Types ¶
type AccessTimes ¶
type AccessTimes struct { // TopicID is the ID of the topic TopicID string // Time is the access time Time time.Time }
AccessTimes represents a time when a user accessed a topic.
func GetUserTimes ¶
func GetUserTimes(user string) ([]AccessTimes, error)
GetUserTimes returns all accesstimes saved by a user.
Click to show internal directories.
Click to hide internal directories.