Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatedTime ¶
type CreatedTime struct { }
CreatedTime arranges searchable resources based on when they are created.
func (CreatedTime) ArrangeShortLinks ¶
func (c CreatedTime) ArrangeShortLinks(shortLinks []entity.ShortLink) []entity.ShortLink
ArrangeShortLinks arranges shortLinks based on CreatedAt.
func (CreatedTime) ArrangeUsers ¶
func (c CreatedTime) ArrangeUsers(users []entity.User) []entity.User
ArrangeUsers arranges users based on CreatedAt.
type Order ¶
type Order interface { ArrangeShortLinks(shortLinks []entity.ShortLink) []entity.ShortLink ArrangeUsers(users []entity.User) []entity.User }
Order arranges searchable resources based on predefined properties.
type Unchanged ¶
type Unchanged struct{}
Unchanged keeps the order of search results untouched.
func (Unchanged) ArrangeShortLinks ¶
ArrangeShortLinks keeps the arrangement of shortLinks untouched.
Click to show internal directories.
Click to hide internal directories.