Documentation ¶
Overview ¶
Package utils provides utilities for other packages
Index ¶
- func CreateID() string
- func CreatePasswordHashAndSalt(password string) (hash, salt []byte)
- func NewAPIKey(secret string, keyType models.APIKeyType, userID string) (models.APIKey, error)
- func NewKeyPair(secret, userID string) (models.APIKeyPair, error)
- func ParseJWTClaims(secret, signingMethod, token string) (jwt.MapClaims, error)
- func PullFeed(url, etag string) (models.Feed, []models.Entry, error)
- func VerifyPasswordHash(password string, pwHash, pwSalt []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePasswordHashAndSalt ¶
CreatePasswordHashAndSalt for a given password
func NewKeyPair ¶
func NewKeyPair(secret, userID string) (models.APIKeyPair, error)
func ParseJWTClaims ¶
func PullFeed ¶
PullFeed and return all entries for that feed. If getting the subscription source or parsing the response fails, this function will error.
func VerifyPasswordHash ¶
VerifyPasswordHash with a given salt
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.