testhelper

package
v0.0.0-...-54275e6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2015 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DELIM = '\n'
)

Variables

This section is empty.

Functions

func NewTcpComm

func NewTcpComm(addr string) loadgenlib.Caller

Types

type ServerReq

type ServerReq struct {
	Id       int64
	Operands []int
	Operator string
}

type ServerResp

type ServerResp struct {
	Id      int64
	Formula string
	Result  int
	Err     error
}

type TcpComm

type TcpComm struct {
	// contains filtered or unexported fields
}

func (*TcpComm) BuildReq

func (comm *TcpComm) BuildReq() loadgenlib.RawReq

func (*TcpComm) Call

func (comm *TcpComm) Call(req []byte, timeoutNs time.Duration) ([]byte, error)

func (*TcpComm) CheckResp

func (comm *TcpComm) CheckResp(
	rawReq loadgenlib.RawReq, rawResp loadgenlib.RawResp) *loadgenlib.CallResult

type TcpServer

type TcpServer struct {
	// contains filtered or unexported fields
}

func NewTcpServer

func NewTcpServer() *TcpServer

func (*TcpServer) Close

func (self *TcpServer) Close() bool

func (*TcpServer) Listen

func (self *TcpServer) Listen(addr string) error

Jump to

Keyboard shortcuts

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