Documentation ¶
Index ¶
- type BaseController
- type TokenController
- func (c *TokenController) CreateToken(w http.ResponseWriter, r *http.Request)
- func (c *TokenController) CreateTokenByRsa(w http.ResponseWriter, r *http.Request)
- func (c *TokenController) TestRsaToken(w http.ResponseWriter, r *http.Request)
- func (c *TokenController) TestToken(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct { }
func (*BaseController) GetJwtKey ¶
func (c *BaseController) GetJwtKey() string
type TokenController ¶
type TokenController struct {
BaseController
}
func (*TokenController) CreateToken ¶
func (c *TokenController) CreateToken(w http.ResponseWriter, r *http.Request)
func (*TokenController) CreateTokenByRsa ¶
func (c *TokenController) CreateTokenByRsa(w http.ResponseWriter, r *http.Request)
func (*TokenController) TestRsaToken ¶
func (c *TokenController) TestRsaToken(w http.ResponseWriter, r *http.Request)
func (*TokenController) TestToken ¶
func (c *TokenController) TestToken(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.