storage

package
v0.0.0-...-d8ec886 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoStorage

type MongoStorage struct {
	Client *mongo.Client
	// contains filtered or unexported fields
}

func NewMongoStorage

func NewMongoStorage(uri string, ctx context.Context) (ms MongoStorage)

func (MongoStorage) Disconnect

func (ms MongoStorage) Disconnect() error

func (MongoStorage) Ping

func (ms MongoStorage) Ping() bool

func (MongoStorage) TaskCollection

func (ms MongoStorage) TaskCollection() *mongo.Collection

func (MongoStorage) UserCollection

func (ms MongoStorage) UserCollection() *mongo.Collection

type RedisStorage

type RedisStorage struct {
	Client *redis.Client
	// contains filtered or unexported fields
}

func NewRedisStorage

func NewRedisStorage(uri string, healthcheckMessage string, ctx context.Context) (rs RedisStorage)

Jump to

Keyboard shortcuts

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