testutil

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoatOverPipe

func NewGoatOverPipe(c net.Conn) *goatOverPipe

Types

type ReadReturn

type ReadReturn struct {
	Rpc *goatorepo.Rpc
	Err error
}

type TestConn

type TestConn struct {
	ReadChan  chan ReadReturn
	WriteChan chan *goatorepo.Rpc
}

func NewTestConn

func NewTestConn() *TestConn

func (*TestConn) Read

func (c *TestConn) Read(ctx context.Context) (*goatorepo.Rpc, error)

func (*TestConn) Write

func (c *TestConn) Write(ctx context.Context, rpc *goatorepo.Rpc) error

Jump to

Keyboard shortcuts

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