package
Version:
v0.0.0-...-0bfac37
Opens a new window with list of versions in this module.
Published: Mar 12, 2019
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewStorage accepts a Config and returns a pointer to a new Storage.
Config contains configuration values used by mysql.
Storage is an implementation of the generic interface storage.Storage for MySQL
Create a user based on a hydrated user model. Return an error on failure
Delete soft deletes a user by setting the DeletedAt timestamp to now
GetUser based on their user id and return a model or error
List the users with the optional field country - if this isn't provided all users will be returned
Ping the database connection for a readiness check
Update a user model with its new set properties
Source Files
¶
Click to show internal directories.
Click to hide internal directories.