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 ¶
func New() result.Result[*BeanstalkdClient]
New creates a new BeanstalkdClient using config.Conf().Beanstalkd.
func NewFromConfig ¶ added in v1.4.0
func NewFromConfig(cfg config.BeanstalkdConfig) result.Result[*BeanstalkdClient]
NewFromConfig creates a BeanstalkdClient from the given config.
Types ¶
type BeanstalkdClient ¶
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.
Click to show internal directories.
Click to hide internal directories.