db

package
v0.0.0-...-1ed23f6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package DB determines the interface for any DB implementation that may store the values

Index

Constants

This section is empty.

Variables

View Source
var ErrDBNotFound = errors.New("key wasn't found on DB")

Functions

This section is empty.

Types

type DB

type DB interface {
	Store(api.DomainScore) error
	GetScore(domain string) (score int, err error)
}

DB interface represents any db

Directories

Path Synopsis
Package redis implements the DB interface for the redis database
Package redis implements the DB interface for the redis database

Jump to

Keyboard shortcuts

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