verify

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USER ups = 1 << 0 // The weight of USER is 1
	PASS ups = 1 << 1 // The weight of PASS is 2
	SECU ups = 1 << 2 // The weight of SECU is 4
)

USER 表示 已设置账户 PASS 表示 已设置密码 SECU 表示 已开启访问登录

Variables

This section is empty.

Functions

func If

func If(cond bool, t any, f any) any

func NewUPSHandler

func NewUPSHandler(weight uint8) *upsHandler

Types

type Handler

type Handler interface {
	Handle() error
}

func NewPathHandler

func NewPathHandler(path string) Handler

func NewPortHandler

func NewPortHandler(port int) Handler

type Verifier

type Verifier interface {
	AddToHead(Handler) Verifier
	AddToTail(Handler) Verifier
	Iterator() error
}

func NewVerifyChain

func NewVerifyChain() Verifier

Jump to

Keyboard shortcuts

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