db

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 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 DatabaseInfo

type DatabaseInfo struct {
	Type     string
	Host     string
	Port     int
	Timeout  string
	Username string
	Password string

	// Redis specific configuration items
	MaxIdle   int
	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.
models
models describes the data types that will be used when storing export data in Mongo.
models describes the data types that will be used when storing export data in Mongo.
redis provides the Redis implementation of the StoreClient interface.
redis provides the Redis implementation of the StoreClient interface.
models
models describes the data types that will be used when storing export data in Redis.
models describes the data types that will be used when storing export data in Redis.

Jump to

Keyboard shortcuts

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