s3browser-backend/internal/db/db.go

10 lines
204 B
Go
Raw Permalink Normal View History

2021-10-20 14:11:18 +00:00
package db
2022-02-07 14:59:43 +00:00
import "context"
2021-10-20 14:11:18 +00:00
2022-02-07 14:59:43 +00:00
type DB interface {
Setup() error
CheckLogin(ctx context.Context, username, password string) (bool, error)
AddUser(ctx context.Context, username, password string) error
2021-10-20 14:11:18 +00:00
}