Documentation
¶
Index ¶
- type DuplexChan
- func (c *DuplexChan) Clean()
- func (c *DuplexChan) IsReqType(msg any) bool
- func (c *DuplexChan) IsRespType(msg any) bool
- func (c *DuplexChan) ReqReceive(duration time.Duration) (any, error)
- func (c *DuplexChan) ReqSend(msg any, duration time.Duration) error
- func (c *DuplexChan) RespReceive(duration time.Duration) (any, error)
- func (c *DuplexChan) RespSend(msg any, duration time.Duration) error
- type KV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DuplexChan ¶
func NewDuplexChan ¶
func NewDuplexChan(reqSize int, respSize int, reqType any, respType any) DuplexChan
func (*DuplexChan) Clean ¶
func (c *DuplexChan) Clean()
func (*DuplexChan) IsReqType ¶
func (c *DuplexChan) IsReqType(msg any) bool
func (*DuplexChan) IsRespType ¶
func (c *DuplexChan) IsRespType(msg any) bool
func (*DuplexChan) ReqReceive ¶
func (c *DuplexChan) ReqReceive(duration time.Duration) (any, error)
func (*DuplexChan) RespReceive ¶
func (c *DuplexChan) RespReceive(duration time.Duration) (any, error)
Click to show internal directories.
Click to hide internal directories.