Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JwtTestUtilOpt ¶
Types ¶
type JwtTestProperties ¶
type JwtTestProperties struct {
PrivateKey string
}
func NewJwtTestProperties ¶
func NewJwtTestProperties(loader config.Loader) (*JwtTestProperties, error)
func (*JwtTestProperties) Prefix ¶
func (j *JwtTestProperties) Prefix() string
type JwtTestUtil ¶
type JwtTestUtil struct {
// contains filtered or unexported fields
}
func NewJwtTestUtil ¶
func NewJwtTestUtil(jwtProperties *JwtTestProperties) (*JwtTestUtil, error)
func (*JwtTestUtil) CreateJwtToken ¶
func (s *JwtTestUtil) CreateJwtToken(userId string) string
CreateJwtToken return a new jwt token
func (*JwtTestUtil) LoadJwtPrivateKey ¶
func (s *JwtTestUtil) LoadJwtPrivateKey() error
LoadJwtPrivateKey load jwt config from properties
Click to show internal directories.
Click to hide internal directories.