Documentation
¶
Index ¶
- func InsertAccount(ctx context.Context, pool *pgxpool.Pool, ...) (int, error)
- func LoadAccountIdByEmail(ctx context.Context, pool *pgxpool.Pool, email string) (int, error)
- func LoadAccountIdByName(ctx context.Context, pool *pgxpool.Pool, name string) (int, error)
- func LogEvent(ctx context.Context, pool *pgxpool.Pool, kind Kind, accountId int, ...)
- func UpdatePassword(ctx context.Context, pool *pgxpool.Pool, name, password string) error
- type Account
- type Kind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertAccount ¶
func LoadAccountIdByEmail ¶ added in v0.0.14
func LoadAccountIdByName ¶ added in v0.0.14
Types ¶
type Account ¶
type Kind ¶ added in v0.0.14
type Kind string
const ( ACCOUNT_CREATED Kind = "account_created" ACCOUNT_DELETED Kind = "account_deleted" LOGIN_SUCCESS Kind = "login_success" LOGIN_FAILURE Kind = "login_failure" INSTANCE_START Kind = "instance_start" INSTANCE_STOP Kind = "instance_stop" PASSWORD_REQUESTED Kind = "password_requested" PASSWORD_RESET Kind = "password_reset" )
Click to show internal directories.
Click to hide internal directories.