Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFooServer ¶
Types ¶
type FooClient ¶
type FooClient interface {
TestFoo(ctx context.Context, in *ReqGrpcTestMessage, opts ...grpc.CallOption) (*ResGrpcTestMessage, error)
}
func NewGrpcTestClient ¶
func NewGrpcTestClient(cc grpc.ClientConnInterface) FooClient
type FooClientImpl ¶
type FooClientImpl struct {
// contains filtered or unexported fields
}
func (*FooClientImpl) TestFoo ¶
func (c *FooClientImpl) TestFoo(ctx context.Context, in *ReqGrpcTestMessage, opts ...grpc.CallOption) (*ResGrpcTestMessage, error)
type FooServer ¶
type FooServer interface {
TestFoo(context.Context, *ReqGrpcTestMessage) (*ResGrpcTestMessage, error)
}
type FooServerImpl ¶
type FooServerImpl struct { }
func (*FooServerImpl) TestFoo ¶
func (s *FooServerImpl) TestFoo(ctx context.Context, in *ReqGrpcTestMessage) (*ResGrpcTestMessage, error)
type ReqGrpcTestMessage ¶
type ReqGrpcTestMessage struct { // int32 does not implement Marshal Foo int32 `protobuf:"varint,1,opt,name=foo,proto3" json:"foo,omitempty"` }
extends proto.Message
func (*ReqGrpcTestMessage) ProtoMessage ¶
func (*ReqGrpcTestMessage) ProtoMessage()
func (*ReqGrpcTestMessage) Reset ¶
func (m *ReqGrpcTestMessage) Reset()
func (*ReqGrpcTestMessage) String ¶
func (m *ReqGrpcTestMessage) String() string
type ResGrpcTestMessage ¶
type ResGrpcTestMessage struct {
Bar int32 `protobuf:"varint,1,opt,name=bar,proto3" json:"bar,omitempty"`
}
func (*ResGrpcTestMessage) ProtoMessage ¶
func (*ResGrpcTestMessage) ProtoMessage()
func (*ResGrpcTestMessage) Reset ¶
func (m *ResGrpcTestMessage) Reset()
func (*ResGrpcTestMessage) String ¶
func (m *ResGrpcTestMessage) String() string
Click to show internal directories.
Click to hide internal directories.