Versions in this module Expand all Collapse all v1 v1.0.1 May 1, 2024 Changes in this version + func New(c *beanstalk.Conn, name string) *beanstalkClient + type Client interface + Kick func(bound int) (n int, err error) + Pause func(d time.Duration) error + PeekBuried func() (id uint64, body []byte, err error) + PeekDelayed func() (id uint64, body []byte, err error) + PeekReady func() (id uint64, body []byte, err error) + Put func(body []byte, pri uint32, delay, ttr time.Duration) (id uint64, err error) + Stats func() (map[string]string, error) + func NewMock(name string) Client + func NewMockWillPut(name string, body string, id uint64) Client + type MockClient struct + Name string + func (c *MockClient) ExpectPut(body string, id uint64) + func (c *MockClient) Kick(bound int) (n int, err error) + func (c *MockClient) Pause(d time.Duration) error + func (c *MockClient) PeekBuried() (id uint64, body []byte, err error) + func (c *MockClient) PeekDelayed() (id uint64, body []byte, err error) + func (c *MockClient) PeekReady() (id uint64, body []byte, err error) + func (c *MockClient) Put(body []byte, pri uint32, delay, ttr time.Duration) (id uint64, err error) + func (c *MockClient) Stats() (map[string]string, error) + type MockConn struct