Created
September 8, 2020 03:24
-
-
Save seamusv/370089bc9b5efbe219ea7e9385a2a8bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pgsql | |
import "github.com/seamusv/pkb/pkg/link" | |
func (r *repository) AddUrl(url string) (*link.Link, error) { | |
return nil, nil | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pgsql | |
import "github.com/jackc/pgx/v4/pgxpool" | |
type repository struct { | |
db *pgxpool.Pool | |
} | |
func SetupRepository(db *pgxpool.Pool) *repository { | |
return &repository{db: db} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pgsql | |
import "github.com/seamusv/pkb/pkg/user" | |
func (r *repository) UserByUsernameAndPassword(username, password string) (*user.User, error) { | |
panic("implement me") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment