Documentation
¶
Index ¶
Constants ¶
View Source
const COLL = "events"
View Source
const DB = "dbevent"
Variables ¶
This section is empty.
Functions ¶
func MakeQueryBSON ¶
func MakeQueryBSON(params audit.QueryParams) bson.M
Types ¶
type InsertDoc ¶
type InsertDoc struct { Type string `bson:"type"` Consumer string `bson:"consumer"` Payload map[string]interface{} `bson:"payload,inline,omitempty"` CreatedAt time.Time `bson:"created_at"` }
func MakeInsertDoc ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func MakeMongoRepo ¶
func (*Repo) FindEvents ¶
Click to show internal directories.
Click to hide internal directories.