store

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRecordNotFound ...
	ErrRecordNotFound = errors.New("record not found")
)

Functions

This section is empty.

Types

type BlackListRepository added in v0.0.14

type BlackListRepository interface {
	FindByIPv4(ipv4 string) (*model.BlackListItem, error)
}

type Store

type Store interface {
	Token() TokenRepository
	Blacklist() BlackListRepository
}

Store is an interface for communication with store.

type TokenRepository

type TokenRepository interface {
	FindByID(id string) (*model.Token, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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