Documentation ¶
Index ¶
- func RegisterStreamsServer(s *grpc.Server, srv StreamsServer)
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)
- func (m *Reply) GetMsg() string
- func (*Reply) ProtoMessage()
- func (m *Reply) Reset()
- func (m *Reply) String() string
- func (m *Reply) XXX_DiscardUnknown()
- func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reply) XXX_Merge(src proto.Message)
- func (m *Reply) XXX_Size() int
- func (m *Reply) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetMsg() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type StreamsClient
- type StreamsServer
- type Streams_FullDuplexClient
- type Streams_FullDuplexServer
- type Streams_HalfDuplexClient
- type Streams_HalfDuplexServer
- type UnimplementedStreamsServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStreamsServer ¶
func RegisterStreamsServer(s *grpc.Server, srv StreamsServer)
Types ¶
type Reply ¶
type Reply struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Reply) Descriptor ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) XXX_DiscardUnknown ¶
func (m *Reply) XXX_DiscardUnknown()
func (*Reply) XXX_Marshal ¶
func (*Reply) XXX_Unmarshal ¶
type Request ¶
type Request struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type StreamsClient ¶
type StreamsClient interface { HalfDuplex(ctx context.Context, in *Request, opts ...grpc.CallOption) (Streams_HalfDuplexClient, error) FullDuplex(ctx context.Context, opts ...grpc.CallOption) (Streams_FullDuplexClient, error) }
StreamsClient is the client API for Streams service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStreamsClient ¶
func NewStreamsClient(cc *grpc.ClientConn) StreamsClient
type StreamsServer ¶
type StreamsServer interface { HalfDuplex(*Request, Streams_HalfDuplexServer) error FullDuplex(Streams_FullDuplexServer) error }
StreamsServer is the server API for Streams service.
type Streams_HalfDuplexClient ¶
type Streams_HalfDuplexClient interface { Recv() (*Reply, error) grpc.ClientStream }
type Streams_HalfDuplexServer ¶
type Streams_HalfDuplexServer interface { Send(*Reply) error grpc.ServerStream }
type UnimplementedStreamsServer ¶
type UnimplementedStreamsServer struct { }
UnimplementedStreamsServer can be embedded to have forward compatible implementations.
func (*UnimplementedStreamsServer) FullDuplex ¶
func (*UnimplementedStreamsServer) FullDuplex(srv Streams_FullDuplexServer) error
func (*UnimplementedStreamsServer) HalfDuplex ¶
func (*UnimplementedStreamsServer) HalfDuplex(req *Request, srv Streams_HalfDuplexServer) error
Click to show internal directories.
Click to hide internal directories.