repository

package
v0.0.0-...-fb92606 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 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 Blacklist

type Blacklist interface {
	AddToBlacklist(subnet string) error
	RemoveFromBlacklist(subnet string) error
	CheckIfIPInBlacklist(ip string) (bool, error)
}

type Repository

type Repository struct {
	Blacklist
	Whitelist
}

func NewRepository

func NewRepository(db *sqlx.DB) *Repository

type Whitelist

type Whitelist interface {
	AddToWhitelist(subnet string) error
	RemoveFromWhitelist(subnet string) error
	CheckIfIPInWhitelist(ip string) (bool, error)
}

Directories

Path Synopsis
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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