Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receiver ¶
type Receiver[TIn any, TOut any] interface { Receive(infile, outfile, enckey string) error ReceiveWithContext(ctx context.Context, infile, outfile, enckey string) error }
func NewReceiver ¶
func NewReceiver[TIn any, TOut any](handler ReceiverHandler[TIn, TOut]) Receiver[TIn, TOut]
创建并返回一个多进程指令接收器。
入参:
- handler: 多进程指令处理函数。
出参:
- 多进程指令接收器。
type ReceiverHandler ¶
Click to show internal directories.
Click to hide internal directories.