sorting

package
v0.0.0-...-268cd68 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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 SortingRequest struct {
	Numbers []int `json:"numbers"`
	Sorted  []int `json:"sorted"`
}

type SortingService

type SortingService interface {
	BubbleSort(numbers []int)
}

func NewLoggingService

func NewLoggingService(l log.Logger, s SortingService) SortingService

Jump to

Keyboard shortcuts

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