redis

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: 8 Imported by: 0

Documentation

Overview

Package redis implements the DB interface for the redis database

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Listen location (i.e localhost:7070)
	Listen     string        `json:"Listen"`
	Password   string        `json:"Pass"`
	DB         int           `json:"DB"`
	Expiration time.Duration `json:"Expiration"`
}

Config for redis DB

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

Redis is the DB implementation for redis

func (Redis) GetScore

func (r Redis) GetScore(domain string) (score int, err error)

func (*Redis) Load

func (r *Redis) Load(source io.Reader) error

func (Redis) Store

func (r Redis) Store(d api.DomainScore) error

Jump to

Keyboard shortcuts

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