Documentation ¶
Index ¶
- type BlacklistType
- type ConnectionDTO
- type ConnectionParams
- type UserDTO
- type UserParams
- type UserRepo
- func (r *UserRepo) Blacklist(ctx context.Context, typ BlacklistType, val string, exp time.Duration) error
- func (r *UserRepo) CreateConnection(ctx context.Context, c *ConnectionParams) (*ConnectionDTO, error)
- func (r *UserRepo) CreateUser(ctx context.Context, u *UserParams) (*UserDTO, error)
- func (r *UserRepo) DeleteConnection(ctx context.Context, id string) error
- func (r *UserRepo) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (r *UserRepo) GetConnectionByConnectionID(ctx context.Context, id string) (*ConnectionDTO, error)
- func (r *UserRepo) GetConnectionsByUserID(ctx context.Context, id uuid.UUID) ([]ConnectionDTO, error)
- func (r *UserRepo) GetUserByEmail(ctx context.Context, email string) (*UserDTO, error)
- func (r *UserRepo) GetUserByID(ctx context.Context, id uuid.UUID) (*UserDTO, error)
- func (r *UserRepo) IsBlacklisted(ctx context.Context, typ BlacklistType, val string) (bool, error)
- func (r *UserRepo) UpdateConnection(ctx context.Context, id string, c *ConnectionParams) error
- func (r *UserRepo) UpdateUser(ctx context.Context, id uuid.UUID, u *UserParams) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlacklistType ¶
type BlacklistType uint
const ( BlacklistIPAddress BlacklistType = iota BlacklistRefreshToken )
type ConnectionDTO ¶
type UserParams ¶
func (*UserParams) Validate ¶
func (p *UserParams) Validate() error
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func (*UserRepo) CreateConnection ¶
func (r *UserRepo) CreateConnection(ctx context.Context, c *ConnectionParams) (*ConnectionDTO, error)
func (*UserRepo) CreateUser ¶
func (*UserRepo) DeleteConnection ¶
func (*UserRepo) DeleteUser ¶
func (*UserRepo) GetConnectionByConnectionID ¶
func (*UserRepo) GetConnectionsByUserID ¶
func (*UserRepo) GetUserByEmail ¶
func (*UserRepo) GetUserByID ¶
func (*UserRepo) IsBlacklisted ¶
func (*UserRepo) UpdateConnection ¶
func (*UserRepo) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.