Documentation ¶
Index ¶
- Variables
- func RegisterExampleServer(s *grpc.Server, srv ExampleServer)
- type ExampleClient
- type ExampleRequest
- func (*ExampleRequest) Descriptor() ([]byte, []int)
- func (m *ExampleRequest) GetRequest() string
- func (m *ExampleRequest) GetV1Beta2Field() string
- func (m *ExampleRequest) Marshal() (dAtA []byte, err error)
- func (m *ExampleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ExampleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExampleRequest) ProtoMessage()
- func (m *ExampleRequest) Reset()
- func (m *ExampleRequest) Size() (n int)
- func (this *ExampleRequest) String() string
- func (m *ExampleRequest) Unmarshal(dAtA []byte) error
- func (m *ExampleRequest) XXX_DiscardUnknown()
- func (m *ExampleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExampleRequest) XXX_Merge(src proto.Message)
- func (m *ExampleRequest) XXX_Size() int
- func (m *ExampleRequest) XXX_Unmarshal(b []byte) error
- type ExampleResponse
- func (*ExampleResponse) Descriptor() ([]byte, []int)
- func (m *ExampleResponse) GetError() string
- func (m *ExampleResponse) Marshal() (dAtA []byte, err error)
- func (m *ExampleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ExampleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExampleResponse) ProtoMessage()
- func (m *ExampleResponse) Reset()
- func (m *ExampleResponse) Size() (n int)
- func (this *ExampleResponse) String() string
- func (m *ExampleResponse) Unmarshal(dAtA []byte) error
- func (m *ExampleResponse) XXX_DiscardUnknown()
- func (m *ExampleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExampleResponse) XXX_Merge(src proto.Message)
- func (m *ExampleResponse) XXX_Size() int
- func (m *ExampleResponse) XXX_Unmarshal(b []byte) error
- type ExampleServer
- type UnimplementedExampleServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterExampleServer ¶
func RegisterExampleServer(s *grpc.Server, srv ExampleServer)
Types ¶
type ExampleClient ¶
type ExampleClient interface {
GetExampleInfo(ctx context.Context, in *ExampleRequest, opts ...grpc.CallOption) (*ExampleResponse, error)
}
ExampleClient is the client API for Example service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExampleClient ¶
func NewExampleClient(cc *grpc.ClientConn) ExampleClient
type ExampleRequest ¶
type ExampleRequest struct { Request string `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` V1Beta2Field string `protobuf:"bytes,2,opt,name=v1beta2_field,json=v1beta2Field,proto3" json:"v1beta2_field,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` }
Renames a field from v1beta1 ExampleRequest.
func (*ExampleRequest) Descriptor ¶
func (*ExampleRequest) Descriptor() ([]byte, []int)
func (*ExampleRequest) GetRequest ¶
func (m *ExampleRequest) GetRequest() string
func (*ExampleRequest) GetV1Beta2Field ¶
func (m *ExampleRequest) GetV1Beta2Field() string
func (*ExampleRequest) Marshal ¶
func (m *ExampleRequest) Marshal() (dAtA []byte, err error)
func (*ExampleRequest) MarshalToSizedBuffer ¶ added in v1.16.0
func (m *ExampleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExampleRequest) ProtoMessage ¶
func (*ExampleRequest) ProtoMessage()
func (*ExampleRequest) Reset ¶
func (m *ExampleRequest) Reset()
func (*ExampleRequest) Size ¶
func (m *ExampleRequest) Size() (n int)
func (*ExampleRequest) String ¶
func (this *ExampleRequest) String() string
func (*ExampleRequest) Unmarshal ¶
func (m *ExampleRequest) Unmarshal(dAtA []byte) error
func (*ExampleRequest) XXX_DiscardUnknown ¶ added in v1.16.0
func (m *ExampleRequest) XXX_DiscardUnknown()
func (*ExampleRequest) XXX_Marshal ¶ added in v1.16.0
func (m *ExampleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExampleRequest) XXX_Merge ¶ added in v1.16.0
func (m *ExampleRequest) XXX_Merge(src proto.Message)
func (*ExampleRequest) XXX_Size ¶ added in v1.16.0
func (m *ExampleRequest) XXX_Size() int
func (*ExampleRequest) XXX_Unmarshal ¶ added in v1.16.0
func (m *ExampleRequest) XXX_Unmarshal(b []byte) error
type ExampleResponse ¶
type ExampleResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExampleResponse) Descriptor ¶
func (*ExampleResponse) Descriptor() ([]byte, []int)
func (*ExampleResponse) GetError ¶
func (m *ExampleResponse) GetError() string
func (*ExampleResponse) Marshal ¶
func (m *ExampleResponse) Marshal() (dAtA []byte, err error)
func (*ExampleResponse) MarshalToSizedBuffer ¶ added in v1.16.0
func (m *ExampleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExampleResponse) ProtoMessage ¶
func (*ExampleResponse) ProtoMessage()
func (*ExampleResponse) Reset ¶
func (m *ExampleResponse) Reset()
func (*ExampleResponse) Size ¶
func (m *ExampleResponse) Size() (n int)
func (*ExampleResponse) String ¶
func (this *ExampleResponse) String() string
func (*ExampleResponse) Unmarshal ¶
func (m *ExampleResponse) Unmarshal(dAtA []byte) error
func (*ExampleResponse) XXX_DiscardUnknown ¶ added in v1.16.0
func (m *ExampleResponse) XXX_DiscardUnknown()
func (*ExampleResponse) XXX_Marshal ¶ added in v1.16.0
func (m *ExampleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExampleResponse) XXX_Merge ¶ added in v1.16.0
func (m *ExampleResponse) XXX_Merge(src proto.Message)
func (*ExampleResponse) XXX_Size ¶ added in v1.16.0
func (m *ExampleResponse) XXX_Size() int
func (*ExampleResponse) XXX_Unmarshal ¶ added in v1.16.0
func (m *ExampleResponse) XXX_Unmarshal(b []byte) error
type ExampleServer ¶
type ExampleServer interface {
GetExampleInfo(context.Context, *ExampleRequest) (*ExampleResponse, error)
}
ExampleServer is the server API for Example service.
type UnimplementedExampleServer ¶ added in v1.16.0
type UnimplementedExampleServer struct { }
UnimplementedExampleServer can be embedded to have forward compatible implementations.
func (*UnimplementedExampleServer) GetExampleInfo ¶ added in v1.16.0
func (*UnimplementedExampleServer) GetExampleInfo(ctx context.Context, req *ExampleRequest) (*ExampleResponse, error)
Click to show internal directories.
Click to hide internal directories.