executor

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncExecutor

type AsyncExecutor struct {
	// contains filtered or unexported fields
}

AsyncExecutor handles async request processing

func New

func New(connManager connection.ConnectionManager, requestQueue store.RequestQueue, logger *log.Logger) *AsyncExecutor

New creates a new async executor

func (*AsyncExecutor) ProcessRequest

func (e *AsyncExecutor) ProcessRequest(ctx context.Context, asyncReq *store.AsyncRequest) error

ProcessRequest processes a single async request

func (*AsyncExecutor) ProcessWithRetry

func (e *AsyncExecutor) ProcessWithRetry(ctx context.Context, asyncReq *store.AsyncRequest) error

ProcessWithRetry processes a request with retry logic

func (*AsyncExecutor) RegisterHandler

func (e *AsyncExecutor) RegisterHandler(action string, handler streamer.Handler) error

RegisterHandler registers an async handler

Jump to

Keyboard shortcuts

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