business

package
v0.0.0-...-4a3359c Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProductNotFound = errors.New("sneaker product Not Found")
	ErrProductInvalid  = errors.New("sneaker product Invalid")
)

Functions

func NewSneakerProductService

func NewSneakerProductService(sneakerProductRepo repo.SneakerProductRepository, auth core.AuthService, config config.CommonConfig) service.SneakerProductService

Types

type ProductSorter

type ProductSorter struct {
	// contains filtered or unexported fields
}

func NewSorter

func NewSorter(items []*model.SneakerProduct, property string) (s *ProductSorter)

func (*ProductSorter) Asc

func (s *ProductSorter) Asc() []*model.SneakerProduct

func (*ProductSorter) Desc

func (s *ProductSorter) Desc() []*model.SneakerProduct

func (*ProductSorter) Len

func (s *ProductSorter) Len() int

func (*ProductSorter) Less

func (s *ProductSorter) Less(i, j int) bool

func (*ProductSorter) Sort

func (s *ProductSorter) Sort(desc bool) []*model.SneakerProduct

func (*ProductSorter) Swap

func (s *ProductSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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