service

package
v0.0.0-...-ca0d4d1 Latest Latest
Warning

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

Go to latest
Published: May 31, 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 AdminService

type AdminService interface {
	ResetBucketByLogin(login string) error
	ResetBucketByPassword(password string) error
	ResetBucketByIP(ip net.IP) error
	AddInBlacklist(ipNet *net.IPNet) error
	RemoveFromBlacklist(ipNet *net.IPNet) error
	AddInWhitelist(ipNet *net.IPNet) error
	RemoveFromWhitelist(ipNet *net.IPNet) error
}

AdminService provides interface for admin business-logic

ResetBucketByLogin - flush bucket with passed login

ResetBucketByPassword - flush bucket with passed password

ResetBucketByIP - flush bucket with passed ip

AddInBlacklist - adding subnet to the blacklist

RemoveFromBlacklist - flushing subnet from the blacklist

AddInWhitelist - adding subnet to the whitelist

RemoveFromWhitelist - flushing subnet from the whitelist.

type AuthService

type AuthService interface {
	LogIn(credentials entity.Credentials, ip net.IP) (bool, error)
}

AuthService provides interface for authorization business-logic

LogIn - attempting to log in.

Jump to

Keyboard shortcuts

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