Documentation ¶
Index ¶
- func RegisterSampleApplicationServer(s *grpc.Server, srv SampleApplicationServer)
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetText() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type SampleApplicationClient
- type SampleApplicationServer
- type SampleApplication_DoStreamStreamClient
- type SampleApplication_DoStreamStreamServer
- type SampleApplication_DoStreamUnaryClient
- type SampleApplication_DoStreamUnaryServer
- type SampleApplication_DoUnaryStreamClient
- type SampleApplication_DoUnaryStreamServer
- type UnimplementedSampleApplicationServer
- func (*UnimplementedSampleApplicationServer) DoStreamStream(srv SampleApplication_DoStreamStreamServer) error
- func (*UnimplementedSampleApplicationServer) DoStreamUnary(srv SampleApplication_DoStreamUnaryServer) error
- func (*UnimplementedSampleApplicationServer) DoUnaryStream(req *Message, srv SampleApplication_DoUnaryStreamServer) error
- func (*UnimplementedSampleApplicationServer) DoUnaryUnary(ctx context.Context, req *Message) (*Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSampleApplicationServer ¶
func RegisterSampleApplicationServer(s *grpc.Server, srv SampleApplicationServer)
Types ¶
type Message ¶
type Message struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) XXX_Marshal ¶
type SampleApplicationClient ¶
type SampleApplicationClient interface { DoUnaryUnary(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) DoUnaryStream(ctx context.Context, in *Message, opts ...grpc.CallOption) (SampleApplication_DoUnaryStreamClient, error) DoStreamUnary(ctx context.Context, opts ...grpc.CallOption) (SampleApplication_DoStreamUnaryClient, error) DoStreamStream(ctx context.Context, opts ...grpc.CallOption) (SampleApplication_DoStreamStreamClient, error) }
SampleApplicationClient is the client API for SampleApplication service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSampleApplicationClient ¶
func NewSampleApplicationClient(cc *grpc.ClientConn) SampleApplicationClient
type SampleApplicationServer ¶
type SampleApplicationServer interface { DoUnaryUnary(context.Context, *Message) (*Message, error) DoUnaryStream(*Message, SampleApplication_DoUnaryStreamServer) error DoStreamUnary(SampleApplication_DoStreamUnaryServer) error DoStreamStream(SampleApplication_DoStreamStreamServer) error }
SampleApplicationServer is the server API for SampleApplication service.
type SampleApplication_DoStreamStreamClient ¶
type SampleApplication_DoStreamStreamServer ¶
type SampleApplication_DoStreamUnaryClient ¶
type SampleApplication_DoStreamUnaryServer ¶
type SampleApplication_DoUnaryStreamClient ¶
type SampleApplication_DoUnaryStreamClient interface { Recv() (*Message, error) grpc.ClientStream }
type SampleApplication_DoUnaryStreamServer ¶
type SampleApplication_DoUnaryStreamServer interface { Send(*Message) error grpc.ServerStream }
type UnimplementedSampleApplicationServer ¶
type UnimplementedSampleApplicationServer struct { }
UnimplementedSampleApplicationServer can be embedded to have forward compatible implementations.
func (*UnimplementedSampleApplicationServer) DoStreamStream ¶
func (*UnimplementedSampleApplicationServer) DoStreamStream(srv SampleApplication_DoStreamStreamServer) error
func (*UnimplementedSampleApplicationServer) DoStreamUnary ¶
func (*UnimplementedSampleApplicationServer) DoStreamUnary(srv SampleApplication_DoStreamUnaryServer) error
func (*UnimplementedSampleApplicationServer) DoUnaryStream ¶
func (*UnimplementedSampleApplicationServer) DoUnaryStream(req *Message, srv SampleApplication_DoUnaryStreamServer) error
Click to show internal directories.
Click to hide internal directories.