Documentation ¶
Index ¶
- func AddAPIKey(db *sql.DB, key token.APIKey) error
- func AddServiceKey(db *sql.DB, key token.ServiceKey) error
- func CreateUserWithEmailAndPasswordHash(db *sql.DB, email string, passwordhash string) (bool, error)
- func GenerateAccessToken(user *token.User, db *sql.DB, auth *token.AuthService) (string, error)
- func GetAllAPIKeys(db *sql.DB) ([]token.APIKey, error)
- func GetAllServiceKeys(db *sql.DB) ([]token.ServiceKey, error)
- func GetAllUsers(db *sql.DB) ([]*token.User, error)
- func GetEntitiesForUser(entity Entity, db *sql.DB, userID string) ([]int, error)
- func GetUserByEmail(db *sql.DB, email string) (*token.User, error)
- func GetUserByID(db *sql.DB, userID string) (*token.User, error)
- func RegenerateAccessToken(user *token.User, oldClaims *token.UserClaims, db *sql.DB, ...) (string, error)
- func RemoveAPIKey(db *sql.DB, keyID string) error
- func RemoveEntityForUser(entity Entity, db *sql.DB, objectID string, userID string) (bool, error)
- func RemoveServiceKey(db *sql.DB, keyID string) error
- func SetEntityForUser(entity Entity, db *sql.DB, objectID string, userID string) (bool, error)
- func SetPasswordForUser(db *sql.DB, userID string, newpasswordhash string) (bool, error)
- func SetRoleForUser(db *sql.DB, userID string, newUserRole int) (bool, error)
- func UpdateAPIKey(db *sql.DB, key token.APIKey) error
- func UpdateServiceKey(db *sql.DB, key token.ServiceKey) error
- type Entity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddServiceKey ¶ added in v0.4.0
func AddServiceKey(db *sql.DB, key token.ServiceKey) error
func CreateUserWithEmailAndPasswordHash ¶ added in v0.4.0
func GenerateAccessToken ¶ added in v0.4.0
func GetAllServiceKeys ¶ added in v0.4.0
func GetAllServiceKeys(db *sql.DB) ([]token.ServiceKey, error)
func GetEntitiesForUser ¶ added in v0.7.1
func GetUserByEmail ¶ added in v0.4.0
func RegenerateAccessToken ¶ added in v0.4.0
func RegenerateAccessToken(user *token.User, oldClaims *token.UserClaims, db *sql.DB, auth *token.AuthService) (string, error)
func RemoveEntityForUser ¶ added in v0.7.1
func SetEntityForUser ¶ added in v0.7.1
func SetPasswordForUser ¶ added in v0.4.0
func SetRoleForUser ¶ added in v0.4.0
func UpdateServiceKey ¶ added in v0.4.0
func UpdateServiceKey(db *sql.DB, key token.ServiceKey) error
Types ¶
Click to show internal directories.
Click to hide internal directories.