Documentation ¶
Index ¶
- func RegisterEchoServer(s *grpc.Server, srv EchoServer)
- type EchoClient
- type EchoRequest
- func (*EchoRequest) Descriptor() ([]byte, []int)
- func (m *EchoRequest) GetMessage() string
- func (m *EchoRequest) GetRepetitions() uint32
- func (m *EchoRequest) GetStatusCode() int32
- func (*EchoRequest) ProtoMessage()
- func (m *EchoRequest) Reset()
- func (m *EchoRequest) String() string
- func (m *EchoRequest) XXX_DiscardUnknown()
- func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoRequest) XXX_Merge(src proto.Message)
- func (m *EchoRequest) XXX_Size() int
- func (m *EchoRequest) XXX_Unmarshal(b []byte) error
- type EchoResponse
- func (*EchoResponse) Descriptor() ([]byte, []int)
- func (m *EchoResponse) GetMessage() string
- func (*EchoResponse) ProtoMessage()
- func (m *EchoResponse) Reset()
- func (m *EchoResponse) String() string
- func (m *EchoResponse) XXX_DiscardUnknown()
- func (m *EchoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoResponse) XXX_Merge(src proto.Message)
- func (m *EchoResponse) XXX_Size() int
- func (m *EchoResponse) XXX_Unmarshal(b []byte) error
- type EchoServer
- type EchoStreamRequest
- func (*EchoStreamRequest) Descriptor() ([]byte, []int)
- func (m *EchoStreamRequest) GetFailureIndex() int32
- func (m *EchoStreamRequest) GetInterval() *duration.Duration
- func (m *EchoStreamRequest) GetMessage() string
- func (m *EchoStreamRequest) GetRepetitions() uint32
- func (m *EchoStreamRequest) GetResponses() uint64
- func (m *EchoStreamRequest) GetStatusCode() int32
- func (*EchoStreamRequest) ProtoMessage()
- func (m *EchoStreamRequest) Reset()
- func (m *EchoStreamRequest) String() string
- func (m *EchoStreamRequest) XXX_DiscardUnknown()
- func (m *EchoStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoStreamRequest) XXX_Merge(src proto.Message)
- func (m *EchoStreamRequest) XXX_Size() int
- func (m *EchoStreamRequest) XXX_Unmarshal(b []byte) error
- type EchoStreamResponse
- func (*EchoStreamResponse) Descriptor() ([]byte, []int)
- func (m *EchoStreamResponse) GetIndex() uint64
- func (m *EchoStreamResponse) GetMessage() string
- func (*EchoStreamResponse) ProtoMessage()
- func (m *EchoStreamResponse) Reset()
- func (m *EchoStreamResponse) String() string
- func (m *EchoStreamResponse) XXX_DiscardUnknown()
- func (m *EchoStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoStreamResponse) XXX_Merge(src proto.Message)
- func (m *EchoStreamResponse) XXX_Size() int
- func (m *EchoStreamResponse) XXX_Unmarshal(b []byte) error
- type Echo_EchoStreamClient
- type Echo_EchoStreamServer
- type UnimplementedEchoServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEchoServer ¶
func RegisterEchoServer(s *grpc.Server, srv EchoServer)
Types ¶
type EchoClient ¶
type EchoClient interface { Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) EchoStream(ctx context.Context, in *EchoStreamRequest, opts ...grpc.CallOption) (Echo_EchoStreamClient, error) }
EchoClient is the client API for Echo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEchoClient ¶
func NewEchoClient(cc *grpc.ClientConn) EchoClient
type EchoRequest ¶
type EchoRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Repetitions uint32 `protobuf:"varint,2,opt,name=repetitions,proto3" json:"repetitions,omitempty"` StatusCode int32 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoRequest) Descriptor ¶
func (*EchoRequest) Descriptor() ([]byte, []int)
func (*EchoRequest) GetMessage ¶
func (m *EchoRequest) GetMessage() string
func (*EchoRequest) GetRepetitions ¶
func (m *EchoRequest) GetRepetitions() uint32
func (*EchoRequest) GetStatusCode ¶
func (m *EchoRequest) GetStatusCode() int32
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) Reset ¶
func (m *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (m *EchoRequest) String() string
func (*EchoRequest) XXX_DiscardUnknown ¶
func (m *EchoRequest) XXX_DiscardUnknown()
func (*EchoRequest) XXX_Marshal ¶
func (m *EchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EchoRequest) XXX_Merge ¶
func (m *EchoRequest) XXX_Merge(src proto.Message)
func (*EchoRequest) XXX_Size ¶
func (m *EchoRequest) XXX_Size() int
func (*EchoRequest) XXX_Unmarshal ¶
func (m *EchoRequest) XXX_Unmarshal(b []byte) error
type EchoResponse ¶
type EchoResponse struct { Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoResponse) Descriptor ¶
func (*EchoResponse) Descriptor() ([]byte, []int)
func (*EchoResponse) GetMessage ¶
func (m *EchoResponse) GetMessage() string
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) Reset ¶
func (m *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (m *EchoResponse) String() string
func (*EchoResponse) XXX_DiscardUnknown ¶
func (m *EchoResponse) XXX_DiscardUnknown()
func (*EchoResponse) XXX_Marshal ¶
func (m *EchoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EchoResponse) XXX_Merge ¶
func (m *EchoResponse) XXX_Merge(src proto.Message)
func (*EchoResponse) XXX_Size ¶
func (m *EchoResponse) XXX_Size() int
func (*EchoResponse) XXX_Unmarshal ¶
func (m *EchoResponse) XXX_Unmarshal(b []byte) error
type EchoServer ¶
type EchoServer interface { Echo(context.Context, *EchoRequest) (*EchoResponse, error) EchoStream(*EchoStreamRequest, Echo_EchoStreamServer) error }
EchoServer is the server API for Echo service.
type EchoStreamRequest ¶
type EchoStreamRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Repetitions uint32 `protobuf:"varint,2,opt,name=repetitions,proto3" json:"repetitions,omitempty"` Responses uint64 `protobuf:"varint,3,opt,name=responses,proto3" json:"responses,omitempty"` Interval *duration.Duration `protobuf:"bytes,4,opt,name=interval,proto3" json:"interval,omitempty"` StatusCode int32 `protobuf:"varint,5,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` FailureIndex int32 `protobuf:"varint,6,opt,name=failure_index,json=failureIndex,proto3" json:"failure_index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoStreamRequest) Descriptor ¶
func (*EchoStreamRequest) Descriptor() ([]byte, []int)
func (*EchoStreamRequest) GetFailureIndex ¶
func (m *EchoStreamRequest) GetFailureIndex() int32
func (*EchoStreamRequest) GetInterval ¶
func (m *EchoStreamRequest) GetInterval() *duration.Duration
func (*EchoStreamRequest) GetMessage ¶
func (m *EchoStreamRequest) GetMessage() string
func (*EchoStreamRequest) GetRepetitions ¶
func (m *EchoStreamRequest) GetRepetitions() uint32
func (*EchoStreamRequest) GetResponses ¶
func (m *EchoStreamRequest) GetResponses() uint64
func (*EchoStreamRequest) GetStatusCode ¶
func (m *EchoStreamRequest) GetStatusCode() int32
func (*EchoStreamRequest) ProtoMessage ¶
func (*EchoStreamRequest) ProtoMessage()
func (*EchoStreamRequest) Reset ¶
func (m *EchoStreamRequest) Reset()
func (*EchoStreamRequest) String ¶
func (m *EchoStreamRequest) String() string
func (*EchoStreamRequest) XXX_DiscardUnknown ¶
func (m *EchoStreamRequest) XXX_DiscardUnknown()
func (*EchoStreamRequest) XXX_Marshal ¶
func (m *EchoStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EchoStreamRequest) XXX_Merge ¶
func (m *EchoStreamRequest) XXX_Merge(src proto.Message)
func (*EchoStreamRequest) XXX_Size ¶
func (m *EchoStreamRequest) XXX_Size() int
func (*EchoStreamRequest) XXX_Unmarshal ¶
func (m *EchoStreamRequest) XXX_Unmarshal(b []byte) error
type EchoStreamResponse ¶
type EchoStreamResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoStreamResponse) Descriptor ¶
func (*EchoStreamResponse) Descriptor() ([]byte, []int)
func (*EchoStreamResponse) GetIndex ¶
func (m *EchoStreamResponse) GetIndex() uint64
func (*EchoStreamResponse) GetMessage ¶
func (m *EchoStreamResponse) GetMessage() string
func (*EchoStreamResponse) ProtoMessage ¶
func (*EchoStreamResponse) ProtoMessage()
func (*EchoStreamResponse) Reset ¶
func (m *EchoStreamResponse) Reset()
func (*EchoStreamResponse) String ¶
func (m *EchoStreamResponse) String() string
func (*EchoStreamResponse) XXX_DiscardUnknown ¶
func (m *EchoStreamResponse) XXX_DiscardUnknown()
func (*EchoStreamResponse) XXX_Marshal ¶
func (m *EchoStreamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EchoStreamResponse) XXX_Merge ¶
func (m *EchoStreamResponse) XXX_Merge(src proto.Message)
func (*EchoStreamResponse) XXX_Size ¶
func (m *EchoStreamResponse) XXX_Size() int
func (*EchoStreamResponse) XXX_Unmarshal ¶
func (m *EchoStreamResponse) XXX_Unmarshal(b []byte) error
type Echo_EchoStreamClient ¶
type Echo_EchoStreamClient interface { Recv() (*EchoStreamResponse, error) grpc.ClientStream }
type Echo_EchoStreamServer ¶
type Echo_EchoStreamServer interface { Send(*EchoStreamResponse) error grpc.ServerStream }
type UnimplementedEchoServer ¶
type UnimplementedEchoServer struct { }
UnimplementedEchoServer can be embedded to have forward compatible implementations.
func (*UnimplementedEchoServer) Echo ¶
func (*UnimplementedEchoServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error)
func (*UnimplementedEchoServer) EchoStream ¶
func (*UnimplementedEchoServer) EchoStream(req *EchoStreamRequest, srv Echo_EchoStreamServer) error
Click to show internal directories.
Click to hide internal directories.