Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService() *sortingService
Types ¶
type SortingApi ¶
type SortingApi struct {
// contains filtered or unexported fields
}
func NewSortingApi ¶
func NewSortingApi(s SortingService) *SortingApi
func (*SortingApi) BubbleSortHandler ¶
func (api *SortingApi) BubbleSortHandler(w http.ResponseWriter, r *http.Request) (int, error)
type SortingRequest ¶
type SortingService ¶
type SortingService interface {
BubbleSort(numbers []int)
}
func NewLoggingService ¶
func NewLoggingService(l log.Logger, s SortingService) SortingService
Click to show internal directories.
Click to hide internal directories.