mongodb

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingQuery = "SELECT 1"
)

Variables

This section is empty.

Functions

func NewMongoDBRepo

func NewMongoDBRepo(ctx context.Context, config config.RepoConfig) (repository.Repository, error)

Types

type MongoDBRepository

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

func (*MongoDBRepository) Close

func (repo *MongoDBRepository) Close() error

func (*MongoDBRepository) Ping

func (repo *MongoDBRepository) Ping(ctx context.Context) error

func (*MongoDBRepository) Type

func (repo *MongoDBRepository) Type() string

Jump to

Keyboard shortcuts

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