Versions in this module Expand all Collapse all v1 v1.0.1 Oct 29, 2022 v1.0.0 May 12, 2021 Changes in this version + func UniqStringChan(in chan string) chan string + type CompareLessFunc func(a, b SortType) bool + type Config struct + ChanBuffSize int + ChunkSize int + NumWorkers int + SortedChanBuffSize int + TempFilesDir string + func DefaultConfig() *Config + type FromBytes func([]byte) SortType + type SortType interface + ToBytes func() []byte + type SortTypeSorter struct + func New(i chan SortType, fromBytes FromBytes, lessFunc CompareLessFunc, config *Config) (*SortTypeSorter, chan SortType, chan error) + func NewMock(i chan SortType, fromBytes FromBytes, lessFunc CompareLessFunc, config *Config, ...) (*SortTypeSorter, chan SortType, chan error) + func (s *SortTypeSorter) Sort(ctx context.Context) + type Sorter interface + Sort func(context.Context) + type StringSorter struct + func Strings(i chan string, config *Config) (*StringSorter, chan string, chan error) + func StringsMock(i chan string, config *Config, n int) (*StringSorter, chan string, chan error) + func (s *StringSorter) Sort(ctx context.Context)