repository

package
v0.0.0-...-2805226 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrequencyTableRepository

type FrequencyTableRepository interface {
	// Get retrieves a model.FrequencyTable through the ID.
	Get(ctx context.Context, ID int64) (entity.FrequencyTable, error)
	// Save saves a model.FrequencyTable on the underlaying datasource.
	Save(ctx context.Context, ft entity.FrequencyTable) (int64, error)
}

FrequencyTableRepository represents a repository capable of storing a given model.FrequencyTable.

type WordCountRepository

type WordCountRepository interface {
	// Extract extracts a map of words and counts from a source code repository.
	Extract(url string) (map[string]int, error)
}

WordCountRepository represents a repository capable of extracting the dictionary words count from a source code repository.

Jump to

Keyboard shortcuts

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