Documentation ¶
Index ¶
- func ConnectionURLBuilder(n string) (string, error)
- func NewValidator() *validator.Validate
- func StartServer(a *fiber.App)
- func StartServerWithGracefulShutdown(a *fiber.App)
- func ValidatorErrors(err error) map[string]string
- type GeminiService
- type GithubService
- func (s *GithubService) GetReadme(ctx context.Context, username string) (string, error)
- func (s *GithubService) GetUserProfile(ctx context.Context, username string) (*models.ProfileResponse, error)
- func (s *GithubService) GetUserRepositories(ctx context.Context, username string) ([]*models.Repository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionURLBuilder ¶
ConnectionURLBuilder func for building URL connection.
func NewValidator ¶
func NewValidator() *validator.Validate
NewValidator func for create a new validator for model fields.
func StartServerWithGracefulShutdown ¶
func StartServerWithGracefulShutdown(a *fiber.App)
StartServerWithGracefulShutdown function for starting server with a graceful shutdown.
func ValidatorErrors ¶
ValidatorErrors func for show validation errors for each invalid fields.
Types ¶
type GeminiService ¶
type GeminiService struct {
// contains filtered or unexported fields
}
func NewGeminiService ¶
func NewGeminiService() *GeminiService
func (*GeminiService) GenerateContent ¶
GenerateContent func generate content from AI models
type GithubService ¶
type GithubService struct {
// contains filtered or unexported fields
}
func NewGithubService ¶
func NewGithubService() *GithubService
func (*GithubService) GetUserProfile ¶
func (s *GithubService) GetUserProfile(ctx context.Context, username string) (*models.ProfileResponse, error)
GetUserProfile func get user profile by username
func (*GithubService) GetUserRepositories ¶
func (s *GithubService) GetUserRepositories(ctx context.Context, username string) ([]*models.Repository, error)
GetUserRepositories func get user repositories by username
Click to show internal directories.
Click to hide internal directories.