Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
Secret []byte
}
Signer is type which holds secret key for generating signed tokens
func (*Signer) GenerateTokenFromString ¶
GenerateTokenFromString generates an URL signed token
func (*Signer) VerifyToken ¶
VerifyToken verifies if the URL signed token is valid or not.
Click to show internal directories.
Click to hide internal directories.