Documentation ¶
Index ¶
Constants ¶
View Source
const (
SessionKeyLoginID = "loginId"
)
Variables ¶
View Source
var ( GetAuth AuthRegister LoginInvalid = errors.New("login id is invalid") GetAuthError = errors.New("get oauthInfo error") )
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { Login(c *gin.Context) error Logout(c *gin.Context) error Authorize(c *gin.Context) error }
func NewConfigAuth ¶
func NewConfigAuth() Auth
func NewEmptyAuth ¶
func NewEmptyAuth() Auth
type AuthRegister ¶
type AuthRegister func() Auth
Click to show internal directories.
Click to hide internal directories.