service

package
v0.0.0-...-9b01c71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(
	githubClient *github.Client,
	tokenService *jwt.TokenService,
	userRepo repository.UserRepository,
) *AuthService

func (*AuthService) GetAuthURL

func (s *AuthService) GetAuthURL() string

func (*AuthService) HandleCallback

func (s *AuthService) HandleCallback(code string) (*entity.TokenPair, *entity.User, error)

func (*AuthService) RefreshToken

func (s *AuthService) RefreshToken(refreshToken string) (*entity.TokenPair, error)

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(userRepo repository.UserRepository) *UserService

func (*UserService) FetchFollowers

func (s *UserService) FetchFollowers(token string) ([]entity.Follower, error)

func (*UserService) GetUser

func (s *UserService) GetUser(id string) (*entity.User, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL