Documentation ¶
Index ¶
- Variables
- func CreateProject(ctx context.Context, project *models.Project) error
- func CreateUser(ctx context.Context, user *models.User) error
- func GetByID(ctx context.Context, dest interface{}, query string, id string) error
- func GetByParams(ctx context.Context, dest interface{}, query string, ...) error
- func GetUserByAPIKey(ctx context.Context, apiKey string) (*models.User, error)
- func GetUserByID(ctx context.Context, id string) (*models.User, error)
- func IsErrNoRows(err error) bool
- func NewContext(ctx context.Context, s Store) context.Context
- func Sync(ctx context.Context, query string, obj interface{}) error
- func UUID() string
- func UserEmailExists(ctx context.Context, email string) (bool, error)
- func UsernameExists(ctx context.Context, username string) (bool, error)
- type DataStore
- type Setter
- type Store
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetByParams ¶
func GetUserByAPIKey ¶
func IsErrNoRows ¶
IsErrNoRows returns if given error is a "no rows" error.
Types ¶
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
func NewDataStore ¶
func NewDataStore(cfg configuration.Data) (*DataStore, error)
func (*DataStore) Connection ¶
Connection returns SQLStore current connection.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.