model

package
v0.0.0-...-93c7f1a Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseCounterAdd

func DatabaseCounterAdd(connection Connection, moment time.Time, count int)

func DateTimeFilter

func DateTimeFilter(from time.Time, to time.Time) bson.M

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

type DatabaseCount struct {
	Moment time.Time
	Count  int
}

func DatabaseCounterGet

func DatabaseCounterGet(connection Connection, dateFrom time.Time, dateTo time.Time) []DatabaseCount

type EngineCount

type EngineCount struct {
	Name  string
	Count int
}

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 EnvironmentCount struct {
	Name  string
	Count int
}

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 ProjectCount struct {
	Name  string
	Count int
}

type ProjectMoment

type ProjectMoment struct {
	Moment   time.Time
	Projects []ProjectCount
}

func ProjectCounterGetLatest

func ProjectCounterGetLatest(connection Connection, dateFrom time.Time, dateTo time.Time) ProjectMoment

type TeamCount

type TeamCount struct {
	Name  string
	Count int
}

type TeamMoment

type TeamMoment struct {
	Moment time.Time
	Teams  []TeamCount
}

func TeamCounterGetLatest

func TeamCounterGetLatest(connection Connection, dateFrom time.Time, dateTo time.Time) TeamMoment

Jump to

Keyboard shortcuts

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