strategy

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT, Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGenToken            = errors.New("token generation failed")
	ErrIllegalMetaType     = errors.New("this metaType or method is not allowed to pass")
	ErrGenerateTokenFailed = errors.New("generate token failed")
)

Functions

Types

type ILocalStrategy

type ILocalStrategy interface {
	IStrategyVerify
	IStrategy
}

type IStrategy

type IStrategy = api.IStrategy

type IStrategyVerify

type IStrategyVerify = api.IStrategyVerify

NOTE: for wallet

type StrategyCache

type StrategyCache interface {
	// contains filtered or unexported methods
}

StrategyCache memory based wallet policy cache

type VerifyFunc

type VerifyFunc func(token string, address address.Address, enum types2.MsgEnum, method types2.MethodName) error

Jump to

Keyboard shortcuts

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