db

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package db contains interface and implementation of repository for db

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRepository

type BaseRepository interface {
	// Ping checks connection to database
	Ping(ctx context.Context) error
	Disconnect(ctx context.Context) error
}

BaseRepository is high level implementation

type Type

type Type string

Type all supported db types

var (
	// MongoDb defines MongoDb database type
	MongoDb Type = "mongodb"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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