Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(userRepo repository.UserRepository) *authService
Types ¶
type AuthService ¶
type UserService ¶
type UserService interface { Get(ctx context.Context) ([]model.User, error) Save(ctx context.Context, user *model.User) (int64, error) Update(ctx context.Context, id int64, user *model.User) (int64, error) Delete(ctx context.Context, id int64) (int64, error) }
func NewServiceRepository ¶
func NewServiceRepository(uRepo repository.UserRepository, t time.Duration) UserService
Click to show internal directories.
Click to hide internal directories.