Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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)
Click to show internal directories.
Click to hide internal directories.