internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseDriver

type DatabaseDriver struct {
	// contains filtered or unexported fields
}

func NewCollectionDriver

func NewCollectionDriver(database *mongo.Database) (*DatabaseDriver, error)

func (*DatabaseDriver) Get

func (dd *DatabaseDriver) Get(key key.Key, opts ...noptions.Option) (noptions.Version, error)

func (*DatabaseDriver) GetName

func (dd *DatabaseDriver) GetName() string

func (*DatabaseDriver) Set

func (dd *DatabaseDriver) Set(key key.Key, opts ...noptions.Option) (noptions.Version, error)

type DriverProvider

type DriverProvider struct {
	// contains filtered or unexported fields
}

func NewDriverProvider

func NewDriverProvider(
	mClient *mongo.Client,
	logger *zap.Logger,
) *DriverProvider

func (*DriverProvider) OpenDbDriver

func (dp *DriverProvider) OpenDbDriver(name string) (diface.ICollection, error)

func (*DriverProvider) Shutdown

func (dp *DriverProvider) Shutdown() error

Jump to

Keyboard shortcuts

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