Documentation ¶
Index ¶
- Variables
- func RegisterBasicServer(s grpc.ServiceRegistrar, srv BasicServer)
- type BasicClient
- type BasicServer
- type EchoRequest
- type EchoResponse
- type PingRequest
- type PingResponse
- type UnimplementedBasicServer
- type UnsafeBasicServer
- type UseManyTypesRequest
- func (*UseManyTypesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UseManyTypesRequest) GetFive() []byte
- func (x *UseManyTypesRequest) GetFour() string
- func (x *UseManyTypesRequest) GetOne() int32
- func (x *UseManyTypesRequest) GetSix() bool
- func (x *UseManyTypesRequest) GetThree() float32
- func (x *UseManyTypesRequest) GetTwo() int64
- func (*UseManyTypesRequest) ProtoMessage()
- func (x *UseManyTypesRequest) ProtoReflect() protoreflect.Message
- func (x *UseManyTypesRequest) Reset()
- func (x *UseManyTypesRequest) String() string
- type UseManyTypesResponse
- func (*UseManyTypesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UseManyTypesResponse) GetFive() []byte
- func (x *UseManyTypesResponse) GetFour() string
- func (x *UseManyTypesResponse) GetOne() int32
- func (x *UseManyTypesResponse) GetSix() bool
- func (x *UseManyTypesResponse) GetThree() float32
- func (x *UseManyTypesResponse) GetTwo() int64
- func (*UseManyTypesResponse) ProtoMessage()
- func (x *UseManyTypesResponse) ProtoReflect() protoreflect.Message
- func (x *UseManyTypesResponse) Reset()
- func (x *UseManyTypesResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var Basic_ServiceDesc = grpc.ServiceDesc{ ServiceName: "basicpb.Basic", HandlerType: (*BasicServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Basic_Ping_Handler, }, { MethodName: "Echo", Handler: _Basic_Echo_Handler, }, { MethodName: "UseManyTypes", Handler: _Basic_UseManyTypes_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
Basic_ServiceDesc is the grpc.ServiceDesc for Basic service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBasicServer ¶
func RegisterBasicServer(s grpc.ServiceRegistrar, srv BasicServer)
Types ¶
type BasicClient ¶
type BasicClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) UseManyTypes(ctx context.Context, in *UseManyTypesRequest, opts ...grpc.CallOption) (*UseManyTypesResponse, error) }
BasicClient is the client API for Basic service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBasicClient ¶
func NewBasicClient(cc grpc.ClientConnInterface) BasicClient
type BasicServer ¶
type BasicServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) Echo(context.Context, *EchoRequest) (*EchoResponse, error) UseManyTypes(context.Context, *UseManyTypesRequest) (*UseManyTypesResponse, error) // contains filtered or unexported methods }
BasicServer is the server API for Basic service. All implementations must embed UnimplementedBasicServer for forward compatibility
type EchoRequest ¶
type EchoRequest struct { ReqMessage string `protobuf:"bytes,1,opt,name=req_message,json=reqMessage,proto3" json:"req_message,omitempty"` // contains filtered or unexported fields }
func (*EchoRequest) Descriptor
deprecated
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (*EchoRequest) GetReqMessage ¶
func (x *EchoRequest) GetReqMessage() string
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) ProtoReflect ¶
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (*EchoRequest) Reset ¶
func (x *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (x *EchoRequest) String() string
type EchoResponse ¶
type EchoResponse struct { RespMessage string `protobuf:"bytes,1,opt,name=resp_message,json=respMessage,proto3" json:"resp_message,omitempty"` // contains filtered or unexported fields }
func (*EchoResponse) Descriptor
deprecated
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (*EchoResponse) GetRespMessage ¶
func (x *EchoResponse) GetRespMessage() string
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) ProtoReflect ¶
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (*EchoResponse) Reset ¶
func (x *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (x *EchoResponse) String() string
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct { Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) GetResponse ¶
func (x *PingResponse) GetResponse() string
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type UnimplementedBasicServer ¶
type UnimplementedBasicServer struct { }
UnimplementedBasicServer must be embedded to have forward compatible implementations.
func (UnimplementedBasicServer) Echo ¶
func (UnimplementedBasicServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error)
func (UnimplementedBasicServer) Ping ¶
func (UnimplementedBasicServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (UnimplementedBasicServer) UseManyTypes ¶
func (UnimplementedBasicServer) UseManyTypes(context.Context, *UseManyTypesRequest) (*UseManyTypesResponse, error)
type UnsafeBasicServer ¶
type UnsafeBasicServer interface {
// contains filtered or unexported methods
}
UnsafeBasicServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BasicServer will result in compilation errors.
type UseManyTypesRequest ¶
type UseManyTypesRequest struct { One int32 `protobuf:"varint,1,opt,name=one,proto3" json:"one,omitempty"` Two int64 `protobuf:"varint,2,opt,name=two,proto3" json:"two,omitempty"` Three float32 `protobuf:"fixed32,3,opt,name=three,proto3" json:"three,omitempty"` Four string `protobuf:"bytes,4,opt,name=four,proto3" json:"four,omitempty"` Five []byte `protobuf:"bytes,5,opt,name=five,proto3" json:"five,omitempty"` Six bool `protobuf:"varint,6,opt,name=six,proto3" json:"six,omitempty"` // contains filtered or unexported fields }
func (*UseManyTypesRequest) Descriptor
deprecated
func (*UseManyTypesRequest) Descriptor() ([]byte, []int)
Deprecated: Use UseManyTypesRequest.ProtoReflect.Descriptor instead.
func (*UseManyTypesRequest) GetFive ¶
func (x *UseManyTypesRequest) GetFive() []byte
func (*UseManyTypesRequest) GetFour ¶
func (x *UseManyTypesRequest) GetFour() string
func (*UseManyTypesRequest) GetOne ¶
func (x *UseManyTypesRequest) GetOne() int32
func (*UseManyTypesRequest) GetSix ¶
func (x *UseManyTypesRequest) GetSix() bool
func (*UseManyTypesRequest) GetThree ¶
func (x *UseManyTypesRequest) GetThree() float32
func (*UseManyTypesRequest) GetTwo ¶
func (x *UseManyTypesRequest) GetTwo() int64
func (*UseManyTypesRequest) ProtoMessage ¶
func (*UseManyTypesRequest) ProtoMessage()
func (*UseManyTypesRequest) ProtoReflect ¶
func (x *UseManyTypesRequest) ProtoReflect() protoreflect.Message
func (*UseManyTypesRequest) Reset ¶
func (x *UseManyTypesRequest) Reset()
func (*UseManyTypesRequest) String ¶
func (x *UseManyTypesRequest) String() string
type UseManyTypesResponse ¶
type UseManyTypesResponse struct { One int32 `protobuf:"varint,1,opt,name=one,proto3" json:"one,omitempty"` Two int64 `protobuf:"varint,2,opt,name=two,proto3" json:"two,omitempty"` Three float32 `protobuf:"fixed32,3,opt,name=three,proto3" json:"three,omitempty"` Four string `protobuf:"bytes,4,opt,name=four,proto3" json:"four,omitempty"` Five []byte `protobuf:"bytes,5,opt,name=five,proto3" json:"five,omitempty"` Six bool `protobuf:"varint,6,opt,name=six,proto3" json:"six,omitempty"` // contains filtered or unexported fields }
func (*UseManyTypesResponse) Descriptor
deprecated
func (*UseManyTypesResponse) Descriptor() ([]byte, []int)
Deprecated: Use UseManyTypesResponse.ProtoReflect.Descriptor instead.
func (*UseManyTypesResponse) GetFive ¶
func (x *UseManyTypesResponse) GetFive() []byte
func (*UseManyTypesResponse) GetFour ¶
func (x *UseManyTypesResponse) GetFour() string
func (*UseManyTypesResponse) GetOne ¶
func (x *UseManyTypesResponse) GetOne() int32
func (*UseManyTypesResponse) GetSix ¶
func (x *UseManyTypesResponse) GetSix() bool
func (*UseManyTypesResponse) GetThree ¶
func (x *UseManyTypesResponse) GetThree() float32
func (*UseManyTypesResponse) GetTwo ¶
func (x *UseManyTypesResponse) GetTwo() int64
func (*UseManyTypesResponse) ProtoMessage ¶
func (*UseManyTypesResponse) ProtoMessage()
func (*UseManyTypesResponse) ProtoReflect ¶
func (x *UseManyTypesResponse) ProtoReflect() protoreflect.Message
func (*UseManyTypesResponse) Reset ¶
func (x *UseManyTypesResponse) Reset()
func (*UseManyTypesResponse) String ¶
func (x *UseManyTypesResponse) String() string