repositories

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: 3 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 struct {
	// contains filtered or unexported fields
}

func NewBlacklist

func NewBlacklist(db *sqlx.DB) *Blacklist

func (*Blacklist) AddToBlacklist

func (b *Blacklist) AddToBlacklist(subnet string) error

func (*Blacklist) CheckIfIPInBlacklist

func (b *Blacklist) CheckIfIPInBlacklist(ip string) (bool, error)

func (*Blacklist) RemoveFromBlacklist

func (b *Blacklist) RemoveFromBlacklist(subnet string) error

type Whitelist

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

func NewWhitelist

func NewWhitelist(db *sqlx.DB) *Whitelist

func (*Whitelist) AddToWhitelist

func (w *Whitelist) AddToWhitelist(subnet string) error

func (*Whitelist) CheckIfIPInWhitelist

func (w *Whitelist) CheckIfIPInWhitelist(ip string) (bool, error)

func (*Whitelist) RemoveFromWhitelist

func (w *Whitelist) RemoveFromWhitelist(subnet string) error

Jump to

Keyboard shortcuts

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