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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReferenceNotFound = errors.New("sneaker reference Not Found")
	ErrReferenceNotValid = errors.New("sneaker reference Not Valid")
)

Functions

func NewSneakerReferenceService

func NewSneakerReferenceService(sneakerReferenceRepo repo.SneakerReferenceRepository, auth core.AuthService, config env.ServiceConfig) service.SneakerReferenceService

Types

type ReferenceSorter

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

func NewSorter

func NewSorter(items []*model.SneakerReference, property string) (s *ReferenceSorter)

func (*ReferenceSorter) Asc

func (*ReferenceSorter) Desc

func (s *ReferenceSorter) Desc() []*model.SneakerReference

func (*ReferenceSorter) Len

func (s *ReferenceSorter) Len() int

func (*ReferenceSorter) Less

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

func (*ReferenceSorter) Sort

func (s *ReferenceSorter) Sort(desc bool) []*model.SneakerReference

func (*ReferenceSorter) Swap

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

Jump to

Keyboard shortcuts

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