Documentation ¶
Index ¶
- func DatabaseCounterAdd(connection Connection, moment time.Time, count int)
- func DateTimeFilter(from time.Time, to time.Time) bson.M
- func EngineCounterAdd(connection Connection, moment time.Time, engines map[string]int)
- func EnvironmentCounterAdd(connection Connection, moment time.Time, environments map[string]int)
- func ProjectCounterAdd(connection Connection, moment time.Time, projects map[string]int)
- func TeamCounterAdd(connection Connection, moment time.Time, teams map[string]int)
- type Connection
- type DatabaseCount
- type EngineCount
- type EngineMoment
- type EnvironmentCount
- type EnvironmentMoment
- type ProjectCount
- type ProjectMoment
- type TeamCount
- type TeamMoment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseCounterAdd ¶
func DatabaseCounterAdd(connection Connection, moment time.Time, count int)
func EngineCounterAdd ¶
func EngineCounterAdd(connection Connection, moment time.Time, engines map[string]int)
func EnvironmentCounterAdd ¶
func EnvironmentCounterAdd(connection Connection, moment time.Time, environments map[string]int)
func ProjectCounterAdd ¶
func ProjectCounterAdd(connection Connection, moment time.Time, projects map[string]int)
func TeamCounterAdd ¶
func TeamCounterAdd(connection Connection, moment time.Time, teams map[string]int)
Types ¶
type Connection ¶
type Connection struct { Session *mgo.Session Database *mgo.Database }
func GetConnection ¶
func GetConnection() Connection
type DatabaseCount ¶
func DatabaseCounterGet ¶
func DatabaseCounterGet(connection Connection, dateFrom time.Time, dateTo time.Time) []DatabaseCount
type EngineCount ¶
type EngineMoment ¶
type EngineMoment struct { Moment time.Time Engines []EngineCount }
func EngineCounterGet ¶
func EngineCounterGet(connection Connection, dateFrom time.Time, dateTo time.Time) []EngineMoment
type EnvironmentCount ¶
type EnvironmentMoment ¶
type EnvironmentMoment struct { Moment time.Time Environments []EnvironmentCount }
func EnvironmentCounterGetLatest ¶
func EnvironmentCounterGetLatest(connection Connection, dateFrom time.Time, dateTo time.Time) EnvironmentMoment
type ProjectCount ¶
type ProjectMoment ¶
type ProjectMoment struct { Moment time.Time Projects []ProjectCount }
func ProjectCounterGetLatest ¶
func ProjectCounterGetLatest(connection Connection, dateFrom time.Time, dateTo time.Time) ProjectMoment
type TeamMoment ¶
func TeamCounterGetLatest ¶
func TeamCounterGetLatest(connection Connection, dateFrom time.Time, dateTo time.Time) TeamMoment
Click to show internal directories.
Click to hide internal directories.