Versions in this module Expand all Collapse all v0 v0.1.0 Aug 30, 2026 Changes in this version + var ErrInferenceExecutorClosed = errors.New("ipc: inference executor is closed") + func IsInferenceExecutor(value any) bool + type Dispatcher struct + func NewDispatcher() *Dispatcher + func (d *Dispatcher) DoInference(ctx context.Context, method string, data any) (any, error) + func (d *Dispatcher) Register(method string, handler InferenceExecutorFunc) error + func (d *Dispatcher) Seal() + type InferenceExecutor interface + DoInference func(context.Context, string, any) (any, error) + type InferenceExecutorFunc func(context.Context, string, any) (any, error) + func (f InferenceExecutorFunc) DoInference(ctx context.Context, method string, data any) (any, error) + type Request struct + Data any + ID string + Method string + type Response struct + Data any + Err error + ID string + type UnknownMethodError struct + Method string + func (e *UnknownMethodError) Error() string