Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosedConn = errors.New("use of closed network connection")
ErrClosedConn happens when listener is closing
View Source
var ErrUnexpected = errors.New("unexpected Error")
ErrUnexpected happens on unknown source error
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server defines http server
type Service ¶
type Service interface { GetTopContributors(ctx context.Context, r provider.GithubTopRequest) ([]*provider.Contributor, error) GetTopSearchedLocations(ctx context.Context, size int) ([]*provider.Location, error) }
Service defines application interface
type TopContributorsRequest ¶
TopContributorsRequest defines api request
type TopContributorsResponse ¶
type TopContributorsResponse struct {
Top []*provider.Contributor
}
TopContributorsResponse defines api response
type TopSearchedLocationsRequest ¶
type TopSearchedLocationsRequest struct {
Size int
}
TopContributorsRequest defines api request
type TopSearchedLocationsResponse ¶
TopContributorsResponse defines api response
Click to show internal directories.
Click to hide internal directories.