beanstalkd

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package beanstalkd provides a client wrapper for Beanstalkd job queue.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new BeanstalkdClient using config.Conf().Beanstalkd.

func NewFromConfig added in v1.4.0

NewFromConfig creates a BeanstalkdClient from the given config.

Types

type BeanstalkdClient

type BeanstalkdClient struct {
	Conn *beanstalk.Conn
	Tube string
}

BeanstalkdClient wraps a beanstalk connection and tube for job queuing.

func (*BeanstalkdClient) Close

func (srv *BeanstalkdClient) Close()

Close closes the beanstalk connection.

func (*BeanstalkdClient) Send

func (srv *BeanstalkdClient) Send(content url.Values) result.VoidResult

Send encodes content as URL values and puts it into the configured tube.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL