mongo

package
v0.0.0-...-ef927d8 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(uri, database string) (db *DB, disconnect func())

func (*DB) Aggregate

func (m *DB) Aggregate(timePeriod pulse.Period) error

func (*DB) Connect

func (m *DB) Connect() func()

func (*DB) Write

func (m *DB) Write(sessions []pulse.AggregatedSession) error

Write writes daily coding sessions to a mongodb collection.

Jump to

Keyboard shortcuts

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