Documentation ¶
Index ¶
- type Auth
- func (a *Auth) DynamicAuth(input map[string]interface{}, conf *conf.AuthConfig, type1, type2 string) (data map[string]interface{}, err error)
- func (a *Auth) MultiAuth(input map[string]interface{}, conf *conf.AuthConfig, type1, type2 string) (data map[string]interface{}, err error)
- func (a *Auth) SingleAuth(input map[string]interface{}, conf *conf.AuthConfig, type1 string) error
- type IAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct{}
Auth 对象
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 ¶
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 接口
Source Files ¶
Click to show internal directories.
Click to hide internal directories.