Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amqp ¶
type Amqp interface {
Ping() error
Consumer(queueName, topic, exchangeName string, retryDelay time.Duration) (string, error)
Publisher(exchangeName, exchangeType string, args amqp.Table) error
Publish(payload amqp.Publishing, exchange string) error
Listen(queue string) (<-chan amqp.Delivery, error)
}
Amqp client
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of package
func (App) AmqpEnabled ¶
AmqpEnabled checks that distributed cache eviction is enabled
func (App) Get ¶
func (a App) Get(ctx context.Context, key string, getter func() (interface{}, error), newObj func() interface{}) (interface{}, error)
Get an item from cache of by given getter. Refactor with generics.
func (App) ListenEvictions ¶
ListenEvictions listens on amqp for cache eviction message
Click to show internal directories.
Click to hide internal directories.