Documentation
¶
Index ¶
- type Backend
- type HTTPError
- type Handler
- type Kewpie
- func (this *Kewpie) AddPublishMiddleware(f func(context.Context, *Task, string) error)
- func (this Kewpie) Buffer(ctx context.Context, queueName string, payload *Task) error
- func (this *Kewpie) Connect(backend string, queues []string, connection interface{}) error
- func (this Kewpie) Disconnect() error
- func (this Kewpie) Drain(ctx context.Context) error
- func (this Kewpie) Healthy(ctx context.Context) error
- func (this Kewpie) Pop(ctx context.Context, queueName string, handler types.Handler) error
- func (this Kewpie) PrepareContext(ctx context.Context) context.Context
- func (this Kewpie) Publish(ctx context.Context, queueName string, payload *types.Task) error
- func (this Kewpie) Purge(ctx context.Context, queueName string) error
- func (this Kewpie) PurgeMatching(ctx context.Context, queueName, substr string) error
- func (this Kewpie) Subscribe(ctx context.Context, queueName string, handler types.Handler) error
- func (this Kewpie) SubscribeHTTP(secret string, handler types.Handler, ...) func(w http.ResponseWriter, r *http.Request)
- func (this Kewpie) Suck(ctx context.Context, queueName string, handler types.Handler) error
- type Tags
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Healthy(ctx context.Context) error Publish(ctx context.Context, queueName string, payload *types.Task) error Subscribe(ctx context.Context, queueName string, handler types.Handler) error Suck(ctx context.Context, queueName string, handler types.Handler) error Pop(ctx context.Context, queueName string, handler types.Handler) error Init(queues []string) error Disconnect() error Purge(ctx context.Context, queueName string) error PurgeMatching(ctx context.Context, queueName, substr string) error MaxConcurrentDrainWorkers() int }
type Kewpie ¶
func (*Kewpie) AddPublishMiddleware ¶ added in v3.0.9
func (Kewpie) Disconnect ¶
func (Kewpie) PrepareContext ¶ added in v3.0.9
func (Kewpie) PurgeMatching ¶
func (Kewpie) SubscribeHTTP ¶ added in v3.0.9
Click to show internal directories.
Click to hide internal directories.