Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, driver IAuthDriver)
Types ¶
type DriverManager ¶
type DriverManager struct {
// contains filtered or unexported fields
}
func NewAuthDriverManager ¶
func NewAuthDriverManager() *DriverManager
func (*DriverManager) Get ¶
func (a *DriverManager) Get(name string) (IAuthDriver, bool)
func (*DriverManager) Register ¶
func (a *DriverManager) Register(name string, driver IAuthDriver)
type IAuthDriver ¶
type IAuthDriver interface { Name() string ToPattern(cfg map[string]interface{}) interface{} ToConfig(cfg map[string]interface{}) interface{} }
func Get ¶
func Get(name string) (IAuthDriver, bool)
Click to show internal directories.
Click to hide internal directories.