Documentation
¶
Index ¶
- func ApplyMigrations(db *sql.DB) error
- func RollbackMigrations(db *sql.DB) error
- type ProfilesProvider
- func (p ProfilesProvider) Add(ctx context.Context, profile *models.Profile) (string, error)
- func (p ProfilesProvider) Get(ctx context.Context, profileID string) (*models.Profile, error)
- func (p ProfilesProvider) GetAll(ctx context.Context) ([]*models.Profile, error)
- func (p ProfilesProvider) Search(ctx context.Context, params *models.SearchParams) ([]*models.Profile, error)
- type UsersProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyMigrations ¶
func RollbackMigrations ¶
Types ¶
type ProfilesProvider ¶
type ProfilesProvider struct {
// contains filtered or unexported fields
}
func NewProfilesProvider ¶
func NewProfilesProvider(querier pgxscan.Querier) ProfilesProvider
func (ProfilesProvider) Search ¶
func (p ProfilesProvider) Search(ctx context.Context, params *models.SearchParams) ([]*models.Profile, error)
type UsersProvider ¶
type UsersProvider struct {
// contains filtered or unexported fields
}
func NewUsersProvider ¶
func NewUsersProvider(querier pgxscan.Querier) UsersProvider
Click to show internal directories.
Click to hide internal directories.