Documentation
¶
Index ¶
- type Client
- func (c *Client) Call(serviceMethod string, args any, reply any, finalizer ...queue.Finalizer) error
- func (c *Client) CallAsync(serviceMethod string, args any, reply any, finalizer ...queue.Finalizer) error
- func (c *Client) CallAsyncOnce(serviceMethod string, args any, reply any, finalizer ...queue.Finalizer) error
- func (c *Client) CallOnce(serviceMethod string, args any, reply any, finalizer ...queue.Finalizer) error
- func (c *Client) CallWithConn(conn io.ReadWriteCloser, serviceMethod string, args any, reply any, ...) error
- func (c *Client) Close(isDeleted ...bool) error
- func (c *Client) DoRecoverJob()
- func (c *Client) Save(runMethod RunMethod, serviceMethod string, args any) queue.Finalizer
- type Job
- type Middleware
- type NeedSave
- type Options
- type RunMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // export to custom need save function Storage adapter.Storage // export to custom need save function Deleted atomic.Bool // contains filtered or unexported fields }
func (*Client) CallAsyncOnce ¶
func (*Client) CallWithConn ¶
func (*Client) DoRecoverJob ¶ added in v1.0.5
func (c *Client) DoRecoverJob()
export to user control
type NeedSave ¶
func DefaultSave ¶
func DefaultSave() NeedSave
type Options ¶
type Options func(*Client)
func DisableRetry ¶
func DisableRetry() Options
func EnableNonBlocking ¶
func EnableNonBlocking() Options
func WithFinalizer ¶
func WithMiddleware ¶
func WithMiddleware(m Middleware) Options
func WithSaveCondition ¶
func WithStorage ¶
func WithWorker ¶
Click to show internal directories.
Click to hide internal directories.