checks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package checks contains functions intended for Is, Has, etc. checks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitIP

func InitIP(c context.Context, s models.Querier)

InitIP initializes the IP service

Types

type IPService

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

IPService is the IP service

var IP *IPService

IP provides the IP service

func (*IPService) IsGlined

func (i *IPService) IsGlined(ip string) (bool, error)

IsGlined checks if an IP is g-lined Returns true if the IP is g-lined, false if not, and an error if there was an issue

func (*IPService) IsWhitelisted

func (i *IPService) IsWhitelisted(ip string) (bool, error)

IsWhitelisted checks if an IP is whitelisted in the database

Jump to

Keyboard shortcuts

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