Documentation ¶
Index ¶
- func RegisterDemoServiceServer(s *grpc.Server, srv DemoServiceServer)
- type Data1
- func (*Data1) Descriptor() ([]byte, []int)
- func (m *Data1) GetValue() int32
- func (*Data1) ProtoMessage()
- func (m *Data1) Reset()
- func (m *Data1) String() string
- func (m *Data1) XXX_DiscardUnknown()
- func (m *Data1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Data1) XXX_Merge(src proto.Message)
- func (m *Data1) XXX_Size() int
- func (m *Data1) XXX_Unmarshal(b []byte) error
- type Data2
- func (*Data2) Descriptor() ([]byte, []int)
- func (m *Data2) GetValue() int64
- func (*Data2) ProtoMessage()
- func (m *Data2) Reset()
- func (m *Data2) String() string
- func (m *Data2) XXX_DiscardUnknown()
- func (m *Data2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Data2) XXX_Merge(src proto.Message)
- func (m *Data2) XXX_Size() int
- func (m *Data2) XXX_Unmarshal(b []byte) error
- type Data3
- func (*Data3) Descriptor() ([]byte, []int)
- func (m *Data3) GetFirstValue() int64
- func (m *Data3) GetLastValue() int64
- func (*Data3) ProtoMessage()
- func (m *Data3) Reset()
- func (m *Data3) String() string
- func (m *Data3) XXX_DiscardUnknown()
- func (m *Data3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Data3) XXX_Merge(src proto.Message)
- func (m *Data3) XXX_Size() int
- func (m *Data3) XXX_Unmarshal(b []byte) error
- type DemoServiceClient
- type DemoServiceServer
- type DemoService_GetSumClient
- type DemoService_GetSumServer
- type DemoService_ListNaturalNumbersClient
- type DemoService_ListNaturalNumbersServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDemoServiceServer ¶
func RegisterDemoServiceServer(s *grpc.Server, srv DemoServiceServer)
Types ¶
type Data1 ¶
type Data1 struct { Value int32 `protobuf:"varint,1,opt,name=Value,json=value,proto3" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Data1) Descriptor ¶
func (*Data1) ProtoMessage ¶
func (*Data1) ProtoMessage()
func (*Data1) XXX_DiscardUnknown ¶
func (m *Data1) XXX_DiscardUnknown()
func (*Data1) XXX_Marshal ¶
func (*Data1) XXX_Unmarshal ¶
type Data2 ¶
type Data2 struct { Value int64 `protobuf:"varint,1,opt,name=Value,json=value,proto3" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Data2) Descriptor ¶
func (*Data2) ProtoMessage ¶
func (*Data2) ProtoMessage()
func (*Data2) XXX_DiscardUnknown ¶
func (m *Data2) XXX_DiscardUnknown()
func (*Data2) XXX_Marshal ¶
func (*Data2) XXX_Unmarshal ¶
type Data3 ¶
type Data3 struct { FirstValue int64 `protobuf:"varint,1,opt,name=FirstValue,json=firstValue,proto3" json:"FirstValue,omitempty"` LastValue int64 `protobuf:"varint,2,opt,name=LastValue,json=lastValue,proto3" json:"LastValue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Data3) Descriptor ¶
func (*Data3) GetFirstValue ¶
func (*Data3) GetLastValue ¶
func (*Data3) ProtoMessage ¶
func (*Data3) ProtoMessage()
func (*Data3) XXX_DiscardUnknown ¶
func (m *Data3) XXX_DiscardUnknown()
func (*Data3) XXX_Marshal ¶
func (*Data3) XXX_Unmarshal ¶
type DemoServiceClient ¶
type DemoServiceClient interface { GetSquare(ctx context.Context, in *Data1, opts ...grpc.CallOption) (*Data2, error) GetSum(ctx context.Context, opts ...grpc.CallOption) (DemoService_GetSumClient, error) ListNaturalNumbers(ctx context.Context, in *Data3, opts ...grpc.CallOption) (DemoService_ListNaturalNumbersClient, error) }
DemoServiceClient is the client API for DemoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDemoServiceClient ¶
func NewDemoServiceClient(cc *grpc.ClientConn) DemoServiceClient
type DemoServiceServer ¶
type DemoServiceServer interface { GetSquare(context.Context, *Data1) (*Data2, error) GetSum(DemoService_GetSumServer) error ListNaturalNumbers(*Data3, DemoService_ListNaturalNumbersServer) error }
DemoServiceServer is the server API for DemoService service.
type DemoService_ListNaturalNumbersClient ¶
type DemoService_ListNaturalNumbersClient interface { Recv() (*Data2, error) grpc.ClientStream }
type DemoService_ListNaturalNumbersServer ¶
type DemoService_ListNaturalNumbersServer interface { Send(*Data2) error grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.