db

package
v1.3.1-dev.18 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 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

	// 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.
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