Documentation ¶
Index ¶
- func RegisterGrpcCloudapiServer(s *grpc.Server, srv GrpcCloudapiServer)
- type EchoRequest
- func (*EchoRequest) Descriptor() ([]byte, []int)
- func (m *EchoRequest) GetStringToEcho() string
- 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) GetEchoedString() 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 EchoWithResponseSizeRequest
- func (*EchoWithResponseSizeRequest) Descriptor() ([]byte, []int)
- func (m *EchoWithResponseSizeRequest) GetEchoMsg() string
- func (m *EchoWithResponseSizeRequest) GetResponseSize() int32
- func (*EchoWithResponseSizeRequest) ProtoMessage()
- func (m *EchoWithResponseSizeRequest) Reset()
- func (m *EchoWithResponseSizeRequest) String() string
- func (m *EchoWithResponseSizeRequest) XXX_DiscardUnknown()
- func (m *EchoWithResponseSizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EchoWithResponseSizeRequest) XXX_Merge(src proto.Message)
- func (m *EchoWithResponseSizeRequest) XXX_Size() int
- func (m *EchoWithResponseSizeRequest) XXX_Unmarshal(b []byte) error
- type GrpcCloudapiClient
- type GrpcCloudapiServer
- type GrpcCloudapi_EchoStreamClient
- type GrpcCloudapi_EchoStreamServer
- type StreamEchoRequest
- func (*StreamEchoRequest) Descriptor() ([]byte, []int)
- func (m *StreamEchoRequest) GetMessageCount() int32
- func (m *StreamEchoRequest) GetMessageInterval() int32
- func (*StreamEchoRequest) ProtoMessage()
- func (m *StreamEchoRequest) Reset()
- func (m *StreamEchoRequest) String() string
- func (m *StreamEchoRequest) XXX_DiscardUnknown()
- func (m *StreamEchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StreamEchoRequest) XXX_Merge(src proto.Message)
- func (m *StreamEchoRequest) XXX_Size() int
- func (m *StreamEchoRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedGrpcCloudapiServer
- func (*UnimplementedGrpcCloudapiServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error)
- func (*UnimplementedGrpcCloudapiServer) EchoStream(req *StreamEchoRequest, srv GrpcCloudapi_EchoStreamServer) error
- func (*UnimplementedGrpcCloudapiServer) EchoWithResponseSize(ctx context.Context, req *EchoWithResponseSizeRequest) (*EchoResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGrpcCloudapiServer ¶
func RegisterGrpcCloudapiServer(s *grpc.Server, srv GrpcCloudapiServer)
Types ¶
type EchoRequest ¶
type EchoRequest struct { StringToEcho string `protobuf:"bytes,1,opt,name=string_to_echo,json=stringToEcho,proto3" json:"string_to_echo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request message type for simple echo.
func (*EchoRequest) Descriptor ¶
func (*EchoRequest) Descriptor() ([]byte, []int)
func (*EchoRequest) GetStringToEcho ¶
func (m *EchoRequest) GetStringToEcho() string
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 { EchoedString string `protobuf:"bytes,1,opt,name=echoed_string,json=echoedString,proto3" json:"echoed_string,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response message type for simple echo.
func (*EchoResponse) Descriptor ¶
func (*EchoResponse) Descriptor() ([]byte, []int)
func (*EchoResponse) GetEchoedString ¶
func (m *EchoResponse) GetEchoedString() 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 EchoWithResponseSizeRequest ¶
type EchoWithResponseSizeRequest struct { EchoMsg string `protobuf:"bytes,1,opt,name=echo_msg,json=echoMsg,proto3" json:"echo_msg,omitempty"` ResponseSize int32 `protobuf:"varint,2,opt,name=response_size,json=responseSize,proto3" json:"response_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EchoWithResponseSizeRequest) Descriptor ¶
func (*EchoWithResponseSizeRequest) Descriptor() ([]byte, []int)
func (*EchoWithResponseSizeRequest) GetEchoMsg ¶
func (m *EchoWithResponseSizeRequest) GetEchoMsg() string
func (*EchoWithResponseSizeRequest) GetResponseSize ¶
func (m *EchoWithResponseSizeRequest) GetResponseSize() int32
func (*EchoWithResponseSizeRequest) ProtoMessage ¶
func (*EchoWithResponseSizeRequest) ProtoMessage()
func (*EchoWithResponseSizeRequest) Reset ¶
func (m *EchoWithResponseSizeRequest) Reset()
func (*EchoWithResponseSizeRequest) String ¶
func (m *EchoWithResponseSizeRequest) String() string
func (*EchoWithResponseSizeRequest) XXX_DiscardUnknown ¶
func (m *EchoWithResponseSizeRequest) XXX_DiscardUnknown()
func (*EchoWithResponseSizeRequest) XXX_Marshal ¶
func (m *EchoWithResponseSizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EchoWithResponseSizeRequest) XXX_Merge ¶
func (m *EchoWithResponseSizeRequest) XXX_Merge(src proto.Message)
func (*EchoWithResponseSizeRequest) XXX_Size ¶
func (m *EchoWithResponseSizeRequest) XXX_Size() int
func (*EchoWithResponseSizeRequest) XXX_Unmarshal ¶
func (m *EchoWithResponseSizeRequest) XXX_Unmarshal(b []byte) error
type GrpcCloudapiClient ¶
type GrpcCloudapiClient interface { // A simple echo RPC returns the input string Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) // A simple echo RPC receives a custom response size EchoWithResponseSize(ctx context.Context, in *EchoWithResponseSizeRequest, opts ...grpc.CallOption) (*EchoResponse, error) // A simple stream endpoint EchoStream(ctx context.Context, in *StreamEchoRequest, opts ...grpc.CallOption) (GrpcCloudapi_EchoStreamClient, error) }
GrpcCloudapiClient is the client API for GrpcCloudapi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGrpcCloudapiClient ¶
func NewGrpcCloudapiClient(cc *grpc.ClientConn) GrpcCloudapiClient
type GrpcCloudapiServer ¶
type GrpcCloudapiServer interface { // A simple echo RPC returns the input string Echo(context.Context, *EchoRequest) (*EchoResponse, error) // A simple echo RPC receives a custom response size EchoWithResponseSize(context.Context, *EchoWithResponseSizeRequest) (*EchoResponse, error) // A simple stream endpoint EchoStream(*StreamEchoRequest, GrpcCloudapi_EchoStreamServer) error }
GrpcCloudapiServer is the server API for GrpcCloudapi service.
type GrpcCloudapi_EchoStreamClient ¶
type GrpcCloudapi_EchoStreamClient interface { Recv() (*EchoResponse, error) grpc.ClientStream }
type GrpcCloudapi_EchoStreamServer ¶
type GrpcCloudapi_EchoStreamServer interface { Send(*EchoResponse) error grpc.ServerStream }
type StreamEchoRequest ¶
type StreamEchoRequest struct { MessageCount int32 `protobuf:"varint,1,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"` MessageInterval int32 `protobuf:"varint,2,opt,name=message_interval,json=messageInterval,proto3" json:"message_interval,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamEchoRequest) Descriptor ¶
func (*StreamEchoRequest) Descriptor() ([]byte, []int)
func (*StreamEchoRequest) GetMessageCount ¶
func (m *StreamEchoRequest) GetMessageCount() int32
func (*StreamEchoRequest) GetMessageInterval ¶
func (m *StreamEchoRequest) GetMessageInterval() int32
func (*StreamEchoRequest) ProtoMessage ¶
func (*StreamEchoRequest) ProtoMessage()
func (*StreamEchoRequest) Reset ¶
func (m *StreamEchoRequest) Reset()
func (*StreamEchoRequest) String ¶
func (m *StreamEchoRequest) String() string
func (*StreamEchoRequest) XXX_DiscardUnknown ¶
func (m *StreamEchoRequest) XXX_DiscardUnknown()
func (*StreamEchoRequest) XXX_Marshal ¶
func (m *StreamEchoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StreamEchoRequest) XXX_Merge ¶
func (m *StreamEchoRequest) XXX_Merge(src proto.Message)
func (*StreamEchoRequest) XXX_Size ¶
func (m *StreamEchoRequest) XXX_Size() int
func (*StreamEchoRequest) XXX_Unmarshal ¶
func (m *StreamEchoRequest) XXX_Unmarshal(b []byte) error
type UnimplementedGrpcCloudapiServer ¶
type UnimplementedGrpcCloudapiServer struct { }
UnimplementedGrpcCloudapiServer can be embedded to have forward compatible implementations.
func (*UnimplementedGrpcCloudapiServer) Echo ¶
func (*UnimplementedGrpcCloudapiServer) Echo(ctx context.Context, req *EchoRequest) (*EchoResponse, error)
func (*UnimplementedGrpcCloudapiServer) EchoStream ¶
func (*UnimplementedGrpcCloudapiServer) EchoStream(req *StreamEchoRequest, srv GrpcCloudapi_EchoStreamServer) error
func (*UnimplementedGrpcCloudapiServer) EchoWithResponseSize ¶
func (*UnimplementedGrpcCloudapiServer) EchoWithResponseSize(ctx context.Context, req *EchoWithResponseSizeRequest) (*EchoResponse, error)
Click to show internal directories.
Click to hide internal directories.