Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
DocumentationURL string `json:"documentaion_url"`
}
ErrorResponse is common errror response format.
type Handler ¶
type Handler struct {
Repo Repo
}
Handler - handle API request.
func (*Handler) HealthCheck ¶
HealthCheck checks health.
type Repo ¶
type Repo interface {
GetRepoData(ctx context.Context, userName string, repoName string) (*entity.Repo, error)
GetUserImage(ctx context.Context, avatarURL string) (image.Image, error)
UploadImg(img image.Image, Name string) (string, error)
}
Repo - has repository methods to separate dependencies.
Click to show internal directories.
Click to hide internal directories.