test

package
v0.0.0-...-e446a2f Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Struct

type Struct struct {
	Field int
}

type Test

type Test interface {
	WithNothing()
	WithParam(arg int)
	WithResult() int
	WithVariadic(args ...int)
	WithContext(ctx context.Context)
	WithError() error
	WithStructParam(arg Struct)
	WithStructResult() Struct
	WithNames(ctx_ context.Context, param_ int) (result_ int, err_ error)
}

+sand:rpc

type TestCaller

type TestCaller struct {
	rpc.Caller
}

TestCaller implements Test via a Caller.

func (*TestCaller) WithContext

func (s *TestCaller) WithContext(ctx context.Context)

func (*TestCaller) WithError

func (s *TestCaller) WithError() (err error)

func (*TestCaller) WithNames

func (s *TestCaller) WithNames(ctx_ context.Context, param_ int) (result_ int, err_ error)

func (*TestCaller) WithNothing

func (s *TestCaller) WithNothing()

func (*TestCaller) WithParam

func (s *TestCaller) WithParam(arg int)

func (*TestCaller) WithResult

func (s *TestCaller) WithResult() (res0 int)

func (*TestCaller) WithStructParam

func (s *TestCaller) WithStructParam(arg Struct)

func (*TestCaller) WithStructResult

func (s *TestCaller) WithStructResult() (res0 Struct)

func (*TestCaller) WithVariadic

func (s *TestCaller) WithVariadic(args ...int)

type TestHandler

type TestHandler struct {
	Test
}

TestHandler implements Handler via a Test.

func (*TestHandler) Methods

func (h *TestHandler) Methods() iter.Seq2[string, rpc.MethodFunc]

func (*TestHandler) Serve

func (h *TestHandler) Serve(ctx context.Context, method string, stream rpc.Stream) error

func (*TestHandler) WithContext

func (h *TestHandler) WithContext(ctx context.Context, stream rpc.Stream) error

func (*TestHandler) WithError

func (h *TestHandler) WithError(ctx context.Context, stream rpc.Stream) error

func (*TestHandler) WithNames

func (h *TestHandler) WithNames(ctx context.Context, stream rpc.Stream) error

func (*TestHandler) WithNothing

func (h *TestHandler) WithNothing(ctx context.Context, stream rpc.Stream) error

func (*TestHandler) WithParam

func (h *TestHandler) WithParam(ctx context.Context, stream rpc.Stream) error

func (*TestHandler) WithResult

func (h *TestHandler) WithResult(ctx context.Context, stream rpc.Stream) error

func (*TestHandler) WithStructParam

func (h *TestHandler) WithStructParam(ctx context.Context, stream rpc.Stream) error

func (*TestHandler) WithStructResult

func (h *TestHandler) WithStructResult(ctx context.Context, stream rpc.Stream) error

func (*TestHandler) WithVariadic

func (h *TestHandler) WithVariadic(ctx context.Context, stream rpc.Stream) error

type WithNamesArg

type WithNamesArg struct {
	Param_ int
}

type WithNamesRes

type WithNamesRes struct {
	Result_ int
}

type WithParamArg

type WithParamArg struct {
	Arg int
}

type WithResultRes

type WithResultRes struct {
	Res0 int
}

type WithStructParamArg

type WithStructParamArg struct {
	Arg Struct
}

type WithStructResultRes

type WithStructResultRes struct {
	Res0 Struct
}

type WithVariadicArg

type WithVariadicArg struct {
	Args []int
}

Jump to

Keyboard shortcuts

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