policy

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Preblocked policy state
	Preblocked string = "preblocked"
	// Blocked policy state
	Blocked string = "blocked"
	// Clear policy state
	Clear string = "clear"
)

Variables

This section is empty.

Functions

func RegisterSignInAttempt

func RegisterSignInAttempt(id string)

RegisterSignInAttempt records a sign-in attempt (in order to control it)

func RegisterSignUpAttempt

func RegisterSignUpAttempt(id string)

RegisterSignUpAttempt records a sign-up attempt (in order to control it)

func RegisterSuccessfulSignIn

func RegisterSuccessfulSignIn(id string)

RegisterSuccessfulSignIn records a successful sign-in attempt (in order to clear it)

func RegisterSuccessfulSignUp

func RegisterSuccessfulSignUp(id string)

RegisterSuccessfulSignUp records a successful sign-up attempt (in order to clear it)

func SignInAttemptStatus

func SignInAttemptStatus(id string) string

SignInAttemptStatus checks and controls sign-in attempts from a Web browser/User

func SignUpAttemptStatus

func SignUpAttemptStatus(id string) string

SignUpAttemptStatus checks and controls sign-up attempts from a Web browser/User

Types

This section is empty.

Jump to

Keyboard shortcuts

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