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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRatingNotFound = errors.New("rate Not Found")
	ErrRatingNotValid = errors.New("rate Not Valid")
)

Functions

func NewRatingService

func NewRatingService(rateRepo repo.RatingRepository, auth core.AuthService, config env.ServiceConfig) service.RatingService

Types

type RatingSorter

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

func NewSorter

func NewSorter(items []*model.Rating, property string) (s *RatingSorter)

func (*RatingSorter) Asc

func (s *RatingSorter) Asc() []*model.Rating

func (*RatingSorter) Desc

func (s *RatingSorter) Desc() []*model.Rating

func (*RatingSorter) Len

func (s *RatingSorter) Len() int

func (*RatingSorter) Less

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

func (*RatingSorter) Sort

func (s *RatingSorter) Sort(desc bool) []*model.Rating

func (*RatingSorter) Swap

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

Jump to

Keyboard shortcuts

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