db

package
v0.0.0-...-3abfa60 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoClient

type MongoClient struct {
	ClientName string
	// contains filtered or unexported fields
}

func GetMongoDbClient

func GetMongoDbClient(conf *lib.ConfigSchema) (MongoClient, error)

func (MongoClient) GetStatistics

func (client MongoClient) GetStatistics() (string, error)

type StatEntity

type StatEntity struct {
	Visited    int64
	NotVisited int64
}

type StatistResponse

type StatistResponse struct {
	Reviews int64
	Users   StatEntity
	Movies  StatEntity
}

Jump to

Keyboard shortcuts

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