store

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloseDate

func GetCloseDate(c *mongo.Collection, dt int) int

func GetMongoClient

func GetMongoClient(mongoCfg config.MongoConfig) *mongo.Client

OpenSession to mongodb

func GetReportID

func GetReportID(col *mongo.Collection, report string) (string, error)

GetReportID accepts a report name and returns the report's id

func IsReplicaSet added in v1.14.3

func IsReplicaSet(client *mongo.Client) bool

check if a replica set is enabled

Types

type DatedItem

type DatedItem struct {
	DateInteger int `bson:"date_integer"`
}

Jump to

Keyboard shortcuts

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