business

package
v0.0.0-...-87b546a Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOrderNotFound = errors.New("order Not Found")
	ErrOrderNotValid = errors.New("order Not Valid")
)

Functions

func NewAuthService

func NewAuthService(authConfig env.AuthConfig) service.AuthService

func NewOrderService

func NewOrderService(orderRepo repo.OrderRepository, pipe pipe.SneakerReferencePipe, serviceConfig env.CommonConfig) service.OrderService

Types

type OrderSorter

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

func NewSorter

func NewSorter(items []*model.Order, property string) (s *OrderSorter)

func (*OrderSorter) Asc

func (s *OrderSorter) Asc() []*model.Order

func (*OrderSorter) Desc

func (s *OrderSorter) Desc() []*model.Order

func (*OrderSorter) Len

func (s *OrderSorter) Len() int

func (*OrderSorter) Less

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

func (*OrderSorter) Sort

func (s *OrderSorter) Sort(desc bool) []*model.Order

func (*OrderSorter) Swap

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

Jump to

Keyboard shortcuts

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