auth

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct{}

Auth 对象

func NewAuth

func NewAuth() *Auth

NewAuth 创建对象

func (*Auth) DynamicAuth

func (a *Auth) DynamicAuth(input map[string]interface{}, conf *conf.AuthConfig, type1, type2 string) (data map[string]interface{}, err error)

DynamicAuth 动态认证

func (*Auth) MultiAuth

func (a *Auth) MultiAuth(input map[string]interface{}, conf *conf.AuthConfig, type1, type2 string) (data map[string]interface{}, err error)

MultiAuth 多元认证

func (*Auth) SingleAuth

func (a *Auth) SingleAuth(input map[string]interface{}, conf *conf.AuthConfig, type1 string) error

SingleAuth 单一认证

type IAuth

type IAuth interface {
	SingleAuth(input map[string]interface{}, conf *conf.AuthConfig, type1 string) (err error)
	MultiAuth(input map[string]interface{}, conf *conf.AuthConfig, type1, type2 string) (data map[string]interface{}, err error)
	DynamicAuth(input map[string]interface{}, conf *conf.AuthConfig, type1, type2 string) (data map[string]interface{}, err error)
}

IAuth 接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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