Documentation
¶
Index ¶
- type Struct
- type Test
- type TestCaller
- func (s *TestCaller) WithContext(ctx context.Context)
- func (s *TestCaller) WithError() (err error)
- func (s *TestCaller) WithNames(ctx_ context.Context, param_ int) (result_ int, err_ error)
- func (s *TestCaller) WithNothing()
- func (s *TestCaller) WithParam(arg int)
- func (s *TestCaller) WithResult() (res0 int)
- func (s *TestCaller) WithStructParam(arg Struct)
- func (s *TestCaller) WithStructResult() (res0 Struct)
- func (s *TestCaller) WithVariadic(args ...int)
- type TestHandler
- func (h *TestHandler) Methods() iter.Seq2[string, rpc.MethodFunc]
- func (h *TestHandler) Serve(ctx context.Context, method string, stream rpc.Stream) error
- func (h *TestHandler) WithContext(ctx context.Context, stream rpc.Stream) error
- func (h *TestHandler) WithError(ctx context.Context, stream rpc.Stream) error
- func (h *TestHandler) WithNames(ctx context.Context, stream rpc.Stream) error
- func (h *TestHandler) WithNothing(ctx context.Context, stream rpc.Stream) error
- func (h *TestHandler) WithParam(ctx context.Context, stream rpc.Stream) error
- func (h *TestHandler) WithResult(ctx context.Context, stream rpc.Stream) error
- func (h *TestHandler) WithStructParam(ctx context.Context, stream rpc.Stream) error
- func (h *TestHandler) WithStructResult(ctx context.Context, stream rpc.Stream) error
- func (h *TestHandler) WithVariadic(ctx context.Context, stream rpc.Stream) error
- type WithNamesArg
- type WithNamesRes
- type WithParamArg
- type WithResultRes
- type WithStructParamArg
- type WithStructResultRes
- type WithVariadicArg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
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) 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) WithContext ¶
func (*TestHandler) WithNothing ¶
func (*TestHandler) WithResult ¶
func (*TestHandler) WithStructParam ¶
func (*TestHandler) WithStructResult ¶
func (*TestHandler) WithVariadic ¶
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
}
Click to show internal directories.
Click to hide internal directories.