Documentation
¶
Index ¶
Constants ¶
View Source
const ( InvalidArgument = 3 NotFound = 5 AlreadyExists = 6 PermissionDenied = 7 Internal = 13 OK = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface {
Login(
ctx context.Context,
email string,
password string,
ipAddress string,
) (LoginResponse SessionResponse, err error)
RegisterNewUser(
ctx context.Context,
email string,
password string,
name string,
) (RegisterResponse RegisterResponse, err error)
Logout(
ctx context.Context,
sessionUuid string,
userId uint64,
) int
SessionList(
ctx context.Context,
userId uint64,
) ([]models.Session, int)
}
type RegisterResponse ¶
type SessionResponse ¶
Click to show internal directories.
Click to hide internal directories.