Skip to content

Commit

Permalink
DefaultFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
pieceowater committed Sep 29, 2024
1 parent c12dff0 commit d50d7f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gossiper.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ func NewServiceError(message string) *tools.ServiceError {
return tools.NewServiceError(message)
}

// ToPaginated is an alias for the Tools.ToPaginated method.
func ToPaginated[T any](items []T, count int) tools.PaginatedEntity[T] {
return tools.ToPaginated[T](items, count)
}

// DefaultFilter is an alias for the Tools.DefaultFilter method.
type DefaultFilter[T any] struct {
tools.DefaultFilter[T]
}

// NewFilter is an alias for the Tools.NewFilter method.
func NewFilter[T any]() tools.DefaultFilter[T] {
return tools.NewDefaultFilter[T]()
}
Expand Down

0 comments on commit d50d7f6

Please sign in to comment.