Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
type UserRepository interface { Register(ctx context.Context, user models.UserPayload) (uuid.UUID, error) GetByUsername(ctx context.Context, username string) (*models.User, error) GetById(ctx context.Context, id uuid.UUID) (*models.User, error) UpdateById(ctx context.Context, id uuid.UUID, user models.UserPayload) error DeleteById(ctx context.Context, id uuid.UUID) error }
type UsersService ¶
type UsersService interface { Register(ctx context.Context, user models.UserPayload) (uuid.UUID, error) LoginByUsername(ctx context.Context, user models.UserPayload) (string, error) GetById(ctx context.Context, id uuid.UUID) (*models.User, error) GetByUsername(ctx context.Context, username string) (*models.User, error) UpdateById(ctx context.Context, id uuid.UUID, user models.UserPayload) error DeleteById(ctx context.Context, id uuid.UUID) error }
Click to show internal directories.
Click to hide internal directories.