diff options
Diffstat (limited to 'pkg/database/repository/auth.go')
-rw-r--r-- | pkg/database/repository/auth.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/database/repository/auth.go b/pkg/database/repository/auth.go new file mode 100644 index 0000000..b319495 --- /dev/null +++ b/pkg/database/repository/auth.go @@ -0,0 +1,10 @@ +package repository + +import "context" + +type ( + AuthRepository interface { + GetIDByUsername(ctx context.Context, username string) (uint, error) + GetPassword(ctx context.Context, id uint) ([]byte, error) + } +) |