kitex

package
v0.0.0-...-0dfcff0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualData

func EqualData(data1, data2 *echo.KitexData) bool

func ExchangeFixed

func ExchangeFixed(data *echo.KitexData, client kitexechoservice.Client,
	copsD chan<- time.Duration,
	wg *sync.WaitGroup,
	b *testing.B,
)

func ExchangeQPS

func ExchangeQPS(data *echo.KitexData, client kitexechoservice.Client,
	wg *sync.WaitGroup,
	b *testing.B,
)

func GenData

func GenData(clientsCount, size int, r *rand.Rand) (arr [][]*echo.KitexData)

func MakeClient

func MakeClient(addr string) (kitexechoservice.Client, error)

func NewRandomData

func NewRandomData(r *rand.Rand) *echo.KitexData

func StartServer

func StartServer(addr string, wg *sync.WaitGroup) (srv server.Server)

func WithClientIOBufferSize

func WithClientIOBufferSize() client.Option

func WithServerIOBufferSize

func WithServerIOBufferSize() server.Option

Types

type EchoImpl

type EchoImpl struct{}

func (*EchoImpl) Echo

func (s *EchoImpl) Echo(ctx context.Context, req *echo.KitexData) (resp *echo.KitexData, err error)

Directories

Path Synopsis
kitex_gen
echo/kitexechoservice
Code generated by Kitex v0.6.1.
Code generated by Kitex v0.6.1.

Jump to

Keyboard shortcuts

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