Documentation
¶
Index ¶
- Constants
- func DeleteToken(r *http.Request, client *redis.Client, arg pgtype.UUID) error
- func DeleteUser(r *http.Request, conn *pgxpool.Pool, arg int) (int64, error)
- func GenericErrorLogger(err error, mssg string)
- func StoreToken(r *http.Request, client *redis.Client, arg RedisToken) error
- type CreateUserParams
- type HealthChecks
- type RedisToken
- type UpdateUserParams
- type User
- func CreateUser(r *http.Request, conn *pgxpool.Pool, arg CreateUserParams) (User, error)
- func GetUserById(r *http.Request, conn *pgxpool.Pool, arg int) (User, error)
- func GetUserByUUID(r *http.Request, conn *pgxpool.Pool, arg pgtype.UUID) (User, error)
- func GetUserByUserName(r *http.Request, conn *pgxpool.Pool, arg string) (User, error)
- func UpdateUser(r *http.Request, conn *pgxpool.Pool, arg UpdateUserParams) (User, error)
Constants ¶
View Source
const (
RefreshNameSpace string = "user_auth:user_refresh"
)
Variables ¶
This section is empty.
Functions ¶
func GenericErrorLogger ¶
func StoreToken ¶
Types ¶
type CreateUserParams ¶
type HealthChecks ¶
type HealthChecks struct {
Data string
}
Query Param structs
func HealthCheck ¶
func HealthCheck(r *http.Request, conn *pgxpool.Pool, arg HealthChecks) (HealthChecks, error)
type RedisToken ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.