Documentation ¶
Index ¶
- Variables
- type FooServer
- func (s *FooServer) SayHello(ctx context.Context, in *testproto.HelloRequest) (out *testproto.HelloReply, err error)
- func (s *FooServer) SetHook(f func(context.Context))
- func (s *FooServer) SetName(f string)
- func (s *FooServer) StreamHello(ss testproto.Greeter_StreamHelloServer) (err error)
- func (s *FooServer) WhoServer(ctx context.Context, in *testproto.WhoServerReq) (out *testproto.WhoServerReply, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFoo = errors.New("error foo")
ErrFoo ...
View Source
var RespBye = &testproto.HelloReply{Message: "bye"}
RespBye ...
View Source
var RespFantasy = &testproto.HelloReply{Message: "fantasy"}
RespFantasy ...
StatusFoo ...
Functions ¶
This section is empty.
Types ¶
type FooServer ¶
type FooServer struct {
// contains filtered or unexported fields
}
FooServer ...
func (*FooServer) SayHello ¶
func (s *FooServer) SayHello(ctx context.Context, in *testproto.HelloRequest) (out *testproto.HelloReply, err error)
SayHello ...
func (*FooServer) StreamHello ¶
func (s *FooServer) StreamHello(ss testproto.Greeter_StreamHelloServer) (err error)
StreamHello ...
func (*FooServer) WhoServer ¶
func (s *FooServer) WhoServer(ctx context.Context, in *testproto.WhoServerReq) (out *testproto.WhoServerReply, err error)
StreamHello ...
Click to show internal directories.
Click to hide internal directories.