db

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 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
	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.

Jump to

Keyboard shortcuts

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