db

package
v0.2.0-dev.31 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

db provides useful constants, identifiers, and simple types that apply to all implementations of the store

Index

Constants

View Source
const (
	// Database providers
	MongoDB = "mongodb"
	RedisDB = "redisdb"
)

Variables

View Source
var (
	ErrUnsupportedDatabase = errors.New("unsupported database type")
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Type         string
	Host         string
	Port         int
	Timeout      int
	DatabaseName string
	Username     string
	Password     string
	BatchSize    int
}

Directories

Path Synopsis
interfaces establishes the contract required for any implementation of the export store functionality in a database provider.
interfaces establishes the contract required for any implementation of the export store functionality in a database provider.
mongo provides the Mongo implementation of the StoreClient interface.
mongo provides the Mongo implementation of the StoreClient interface.
redis provides the Redis implementation of the StoreClient interface.
redis provides the Redis implementation of the StoreClient interface.

Jump to

Keyboard shortcuts

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