Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer 呈現了一個簽署者。
func NewSigner ¶
func NewSigner(secret string, method jwt.SigningMethod) *Signer
NewSigner 會建立並回傳一個新的簽署者,並以此來簽發之後的 JSON Web Token。
func (*Signer) SignWithStruct ¶
SignWithStruct 會簽發一個接收到的建構體,並回傳 JSON Web Token 格式。
Click to show internal directories.
Click to hide internal directories.