Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger()
Types ¶
type CustomJWT ¶
type CustomJWT struct {
SigningKey []byte
}
func NewCustomJWT ¶
func (*CustomJWT) GenerateToken ¶
GenerateToken generate token by claims
func (*CustomJWT) ParseToken ¶
ParseToken parse token by token string
type EmailCodeService ¶
type EmailCodeService struct { To string `json:"to"` Code string `json:"code"` Subject string `json:"subject"` }
func NewEmailCodeService ¶
func NewEmailCodeService(to, code, subject string) *EmailCodeService
func (*EmailCodeService) SendCode ¶
func (e *EmailCodeService) SendCode() error
Click to show internal directories.
Click to hide internal directories.