indexer

package
v0.0.0-...-34cc6bf Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Now() time.Time
}

type WordCountRepository

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

func New

func New(redisURL string, clock Clock) *WordCountRepository

func (*WordCountRepository) Cleanup

func (repo *WordCountRepository) Cleanup(word string, before time.Time) error

func (*WordCountRepository) Close

func (repo *WordCountRepository) Close() error

func (*WordCountRepository) Count

func (repo *WordCountRepository) Count(word string, since time.Time) (uint, error)

func (*WordCountRepository) IndexWord

func (repo *WordCountRepository) IndexWord(s string) error

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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