Documentation ¶
Index ¶
- func RegisterHelloServer(s *grpc.Server, srv HelloServer)
- type HelloClient
- type HelloServer
- type Hello_PingPongClient
- type Hello_PingPongServer
- type Hello_StreamClient
- type Hello_StreamServer
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetSay() 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 Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (m *Ping) GetStroke() int64
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)
- func (m *Pong) GetStroke() int64
- func (*Pong) ProtoMessage()
- func (m *Pong) Reset()
- func (m *Pong) String() string
- func (m *Pong) XXX_DiscardUnknown()
- func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pong) XXX_Merge(src proto.Message)
- func (m *Pong) XXX_Size() int
- func (m *Pong) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetName() 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 Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetMsg() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type StreamingRequest
- func (*StreamingRequest) Descriptor() ([]byte, []int)
- func (m *StreamingRequest) GetCount() int64
- func (*StreamingRequest) ProtoMessage()
- func (m *StreamingRequest) Reset()
- func (m *StreamingRequest) String() string
- func (m *StreamingRequest) XXX_DiscardUnknown()
- func (m *StreamingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamingRequest) XXX_Merge(src proto.Message)
- func (m *StreamingRequest) XXX_Size() int
- func (m *StreamingRequest) XXX_Unmarshal(b []byte) error
- type StreamingResponse
- func (*StreamingResponse) Descriptor() ([]byte, []int)
- func (m *StreamingResponse) GetCount() int64
- func (*StreamingResponse) ProtoMessage()
- func (m *StreamingResponse) Reset()
- func (m *StreamingResponse) String() string
- func (m *StreamingResponse) XXX_DiscardUnknown()
- func (m *StreamingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamingResponse) XXX_Merge(src proto.Message)
- func (m *StreamingResponse) XXX_Size() int
- func (m *StreamingResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedHelloServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHelloServer ¶
func RegisterHelloServer(s *grpc.Server, srv HelloServer)
Types ¶
type HelloClient ¶
type HelloClient interface { Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Stream(ctx context.Context, in *StreamingRequest, opts ...grpc.CallOption) (Hello_StreamClient, error) PingPong(ctx context.Context, opts ...grpc.CallOption) (Hello_PingPongClient, error) }
HelloClient is the client API for Hello service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloClient ¶
func NewHelloClient(cc *grpc.ClientConn) HelloClient
type HelloServer ¶
type HelloServer interface { Call(context.Context, *Request) (*Response, error) Stream(*StreamingRequest, Hello_StreamServer) error PingPong(Hello_PingPongServer) error }
HelloServer is the server API for Hello service.
type Hello_PingPongClient ¶
type Hello_PingPongServer ¶
type Hello_StreamClient ¶
type Hello_StreamClient interface { Recv() (*StreamingResponse, error) grpc.ClientStream }
type Hello_StreamServer ¶
type Hello_StreamServer interface { Send(*StreamingResponse) error grpc.ServerStream }
type Message ¶
type Message struct { Say string `protobuf:"bytes,1,opt,name=say,proto3" json:"say,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type Ping ¶
type Ping struct { Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Unmarshal ¶
type Pong ¶
type Pong struct { Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pong) Descriptor ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) XXX_DiscardUnknown ¶
func (m *Pong) XXX_DiscardUnknown()
func (*Pong) XXX_Unmarshal ¶
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,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 Response ¶
type Response 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 (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type StreamingRequest ¶
type StreamingRequest struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamingRequest) Descriptor ¶
func (*StreamingRequest) Descriptor() ([]byte, []int)
func (*StreamingRequest) GetCount ¶
func (m *StreamingRequest) GetCount() int64
func (*StreamingRequest) ProtoMessage ¶
func (*StreamingRequest) ProtoMessage()
func (*StreamingRequest) Reset ¶
func (m *StreamingRequest) Reset()
func (*StreamingRequest) String ¶
func (m *StreamingRequest) String() string
func (*StreamingRequest) XXX_DiscardUnknown ¶
func (m *StreamingRequest) XXX_DiscardUnknown()
func (*StreamingRequest) XXX_Marshal ¶
func (m *StreamingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamingRequest) XXX_Merge ¶
func (m *StreamingRequest) XXX_Merge(src proto.Message)
func (*StreamingRequest) XXX_Size ¶
func (m *StreamingRequest) XXX_Size() int
func (*StreamingRequest) XXX_Unmarshal ¶
func (m *StreamingRequest) XXX_Unmarshal(b []byte) error
type StreamingResponse ¶
type StreamingResponse struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamingResponse) Descriptor ¶
func (*StreamingResponse) Descriptor() ([]byte, []int)
func (*StreamingResponse) GetCount ¶
func (m *StreamingResponse) GetCount() int64
func (*StreamingResponse) ProtoMessage ¶
func (*StreamingResponse) ProtoMessage()
func (*StreamingResponse) Reset ¶
func (m *StreamingResponse) Reset()
func (*StreamingResponse) String ¶
func (m *StreamingResponse) String() string
func (*StreamingResponse) XXX_DiscardUnknown ¶
func (m *StreamingResponse) XXX_DiscardUnknown()
func (*StreamingResponse) XXX_Marshal ¶
func (m *StreamingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamingResponse) XXX_Merge ¶
func (m *StreamingResponse) XXX_Merge(src proto.Message)
func (*StreamingResponse) XXX_Size ¶
func (m *StreamingResponse) XXX_Size() int
func (*StreamingResponse) XXX_Unmarshal ¶
func (m *StreamingResponse) XXX_Unmarshal(b []byte) error
type UnimplementedHelloServer ¶
type UnimplementedHelloServer struct { }
UnimplementedHelloServer can be embedded to have forward compatible implementations.
func (*UnimplementedHelloServer) PingPong ¶
func (*UnimplementedHelloServer) PingPong(srv Hello_PingPongServer) error
func (*UnimplementedHelloServer) Stream ¶
func (*UnimplementedHelloServer) Stream(req *StreamingRequest, srv Hello_StreamServer) error
Click to show internal directories.
Click to hide internal directories.