Documentation
¶
Index ¶
Constants ¶
View Source
const ( UsernameKey = "username" UserIP = "ip" KeyUserID = "userid" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOperator ¶
type AuthOperator struct {
// contains filtered or unexported fields
}
func (*AuthOperator) AuthFunc ¶
func (ao *AuthOperator) AuthFunc() gin.HandlerFunc
func (*AuthOperator) SetStrategy ¶
func (ao *AuthOperator) SetStrategy(strategy AuthStrategy)
type AuthStrategy ¶
type AuthStrategy interface {
AuthFunc() gin.HandlerFunc
}
Click to show internal directories.
Click to hide internal directories.