mutual

package
v0.0.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplexChan

type DuplexChan struct {
	Req  chan any
	Resp chan any
	// contains filtered or unexported fields
}

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) ReqSend

func (c *DuplexChan) ReqSend(msg any, duration time.Duration) error

func (*DuplexChan) RespReceive

func (c *DuplexChan) RespReceive(duration time.Duration) (any, error)

func (*DuplexChan) RespSend

func (c *DuplexChan) RespSend(msg any, duration time.Duration) error

type KV

type KV map[string]interface{}

Jump to

Keyboard shortcuts

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