Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pieceowater committed Sep 29, 2024
1 parent 219d9c4 commit 419a1d7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions gossiper.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,41 @@ type AMQPConsumeConfig = config.AMQPConsumeConfig
// Tools is an alias for the tools.Tools
type Tools = tools.Tools

// Satisfies is an alias for the Tools.Satisfies method.
func Satisfies(data any, dest any) error {
inst := Tools{}
return inst.Satisfies(data, dest)
}

// LogAction is an alias for the Tools.LogAction method.
func LogAction(action string, data any) {
inst := Tools{}
inst.LogAction(action, data)
}

// Enum with aliases for predefined pagination page length
const (
TEN = tools.TEN
FIFTEEN = tools.FIFTEEN
TWENTY = tools.TWENTY
TWENTY_FIVE = tools.TWENTY_FIVE
THIRTY = tools.THIRTY
THIRTY_FIVE = tools.THIRTY_FIVE
FORTY = tools.FORTY
FORTY_FIVE = tools.FORTY_FIVE
FIFTY = tools.FIFTY
FIFTY_FIVE = tools.FIFTY_FIVE
SIXTY = tools.SIXTY
SIXTY_FIVE = tools.SIXTY_FIVE
SEVENTY = tools.SEVENTY
SEVENTY_FIVE = tools.SEVENTY_FIVE
EIGHTY = tools.EIGHTY
EIGHTY_FIVE = tools.EIGHTY_FIVE
NINETY = tools.NINETY
NINETY_FIVE = tools.NINETY_FIVE
ONE_HUNDRED = tools.ONE_HUNDRED
)

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

0 comments on commit 419a1d7

Please sign in to comment.