database

package
v0.0.0-...-6c09dce Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheCheck

func CacheCheck(hand algorithm.Hand, endHandSize int, receiver interface{}) error

func CacheInsert

func CacheInsert(result *simulate.SimulationResult) error

func CollectionSize

func CollectionSize(collectionName string) (int64, error)

func Connect

func Connect(mongodbURI string, dbName string, cacheCollectionName string, pocketsCollectionName string) error

func GetPocket

func GetPocket(pocket algorithm.Hand, receiver interface{}) error

func LoadRanks

func LoadRanks(collectionName string) (map[string]int64, error)

Types

type Entry

type Entry struct {
	Hand string `bson:"hand"`
	Rank int64  `bson:"rank"`
}

Jump to

Keyboard shortcuts

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