mongodb

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const Latest = "latest"

Variables

View Source
var InvalidDestType = errors.New("Invalid dest type")
View Source
var NotFoundError = errors.New("Not found")

Functions

func NewMongoCacheStorageError

func NewMongoCacheStorageError(err error) *mongoCacheStorageError

func NewMongoDbCacheStorage

func NewMongoDbCacheStorage() cacheStorage.CacheStorage

Types

type CacheWrapper

type CacheWrapper struct {
	Id     string      `json:"id"`
	Ver    string      `json:"ver"`
	Data   string      `json:"data"`
	Locked *LockedItem `json:"locked"`
}

func (CacheWrapper) AddData

func (w CacheWrapper) AddData(i interface{}) CacheWrapper

func (CacheWrapper) ExtractData

func (w CacheWrapper) ExtractData(i interface{}) error

type LockedItem

type LockedItem struct {
	LockedAt time.Time `json:"lockedAt"`
	LockedBy string    `json:"lockedBy"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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