draincloud-core/internal/storage/interface.go

18 lines
383 B
Go
Raw Normal View History

2024-09-27 22:37:58 +00:00
package storage
import (
"context"
"git.optclblast.xyz/draincloud/draincloud-light/internal/storage/models"
)
type Database interface {
AuthStorage
}
type AuthStorage interface {
AddUser(ctx context.Context, user *models.User) error
GetUserByLogin(ctx context.Context, login string) (*models.User, error)
GetUserByID(ctx context.Context, id uint64) (*models.User, error)
}