Documentation ¶
Index ¶
- type DBTX
- type Querier
- func (_m *Querier) CheckEmailExists(ctx context.Context, email string) ([]pgtype.Text, error)
- func (_m *Querier) CheckUsernameExists(ctx context.Context, username string) ([]string, error)
- func (_m *Querier) CreatePendingUser(ctx context.Context, arg models.CreatePendingUserParams) (pgtype.Text, error)
- func (_m *Querier) CreateUser(ctx context.Context, arg models.CreateUserParams) (models.User, error)
- func (_m *Querier) DeletePendingUserByCookie(ctx context.Context, cookie pgtype.Text) error
- func (_m *Querier) GetGlineByIP(ctx context.Context, host string) (models.Gline, error)
- func (_m *Querier) GetUserByEmail(ctx context.Context, email string) (models.User, error)
- func (_m *Querier) GetUserByID(ctx context.Context, id int32) (models.GetUserByIDRow, error)
- func (_m *Querier) GetUserByUsername(ctx context.Context, username string) (models.User, error)
- func (_m *Querier) GetUserChannels(ctx context.Context, userID int32) ([]models.GetUserChannelsRow, error)
- func (_m *Querier) GetWhiteListByIP(ctx context.Context, ip netip.Addr) (models.Whitelist, error)
- func (_m *Querier) ListPendingUsers(ctx context.Context) ([]models.Pendinguser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBTX ¶
DBTX is an autogenerated mock type for the DBTX type
func NewDBTX ¶
NewDBTX creates a new instance of DBTX. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DBTX) Exec ¶
func (_m *DBTX) Exec(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgconn.CommandTag, error)
Exec provides a mock function with given fields: _a0, _a1, _a2
type Querier ¶
Querier is an autogenerated mock type for the Querier type
func NewQuerier ¶
NewQuerier creates a new instance of Querier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Querier) CheckEmailExists ¶ added in v0.0.4
CheckEmailExists provides a mock function with given fields: ctx, email
func (*Querier) CheckUsernameExists ¶ added in v0.0.4
CheckUsernameExists provides a mock function with given fields: ctx, username
func (*Querier) CreatePendingUser ¶
func (_m *Querier) CreatePendingUser(ctx context.Context, arg models.CreatePendingUserParams) (pgtype.Text, error)
CreatePendingUser provides a mock function with given fields: ctx, arg
func (*Querier) CreateUser ¶
func (_m *Querier) CreateUser(ctx context.Context, arg models.CreateUserParams) (models.User, error)
CreateUser provides a mock function with given fields: ctx, arg
func (*Querier) DeletePendingUserByCookie ¶
DeletePendingUserByCookie provides a mock function with given fields: ctx, cookie
func (*Querier) GetGlineByIP ¶ added in v0.0.3
GetGlineByIP provides a mock function with given fields: ctx, host
func (*Querier) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
func (*Querier) GetUserByID ¶
GetUserByID provides a mock function with given fields: ctx, id
func (*Querier) GetUserByUsername ¶
GetUserByUsername provides a mock function with given fields: ctx, username
func (*Querier) GetUserChannels ¶
func (_m *Querier) GetUserChannels(ctx context.Context, userID int32) ([]models.GetUserChannelsRow, error)
GetUserChannels provides a mock function with given fields: ctx, userID
func (*Querier) GetWhiteListByIP ¶ added in v0.0.3
GetWhiteListByIP provides a mock function with given fields: ctx, ip
func (*Querier) ListPendingUsers ¶
ListPendingUsers provides a mock function with given fields: ctx