activity

package
v0.0.0-...-b84af7b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(d deps, q bson.M) int

func CountList

func CountList(d deps, q bson.M) int

func Track

func Track(d deps, activity M) (err error)

Track activity.

Types

type M

type M struct {
	ID        bson.ObjectId   `bson:"_id,omitempty" json:"id"`
	UserID    bson.ObjectId   `bson:"user_id,omitempty" json:"user_id"`
	Event     string          `bson:"event,omitempty" event:"related"`
	RelatedID bson.ObjectId   `bson:"related_id,omitempty" json:"related_id,omitempty"`
	List      []bson.ObjectId `bson:"list,omitempty" json:"list,omitempty"`
	Created   time.Time       `bson:"created_at" json:"created_at"`
}

M stands for activity model.

Jump to

Keyboard shortcuts

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