Documentation
¶
Index ¶
- Variables
- func RegisterPingAServer(s grpc.ServiceRegistrar, srv PingAServer)
- func RegisterPingBServer(s grpc.ServiceRegistrar, srv PingBServer)
- func RegisterPingCServer(s grpc.ServiceRegistrar, srv PingCServer)
- type PingAClient
- type PingAReq
- type PingAResponse
- type PingAServer
- type PingBClient
- type PingBReq
- type PingBResponse
- type PingBServer
- type PingCClient
- type PingCReq
- type PingCResponse
- type PingCServer
- type UnimplementedPingAServer
- type UnimplementedPingBServer
- type UnimplementedPingCServer
- type UnsafePingAServer
- type UnsafePingBServer
- type UnsafePingCServer
Constants ¶
This section is empty.
Variables ¶
var File_api_ping_a_proto protoreflect.FileDescriptor
var File_api_ping_b_proto protoreflect.FileDescriptor
var File_api_ping_c_proto protoreflect.FileDescriptor
var PingA_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.PingA", HandlerType: (*PingAServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PingA", Handler: _PingA_PingA_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/ping.a.proto", }
PingA_ServiceDesc is the grpc.ServiceDesc for PingA service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PingB_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.PingB", HandlerType: (*PingBServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PingB", Handler: _PingB_PingB_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/ping.b.proto", }
PingB_ServiceDesc is the grpc.ServiceDesc for PingB service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PingC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.PingC", HandlerType: (*PingCServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PingC", Handler: _PingC_PingC_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/ping.c.proto", }
PingC_ServiceDesc is the grpc.ServiceDesc for PingC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPingAServer ¶
func RegisterPingAServer(s grpc.ServiceRegistrar, srv PingAServer)
func RegisterPingBServer ¶
func RegisterPingBServer(s grpc.ServiceRegistrar, srv PingBServer)
func RegisterPingCServer ¶
func RegisterPingCServer(s grpc.ServiceRegistrar, srv PingCServer)
Types ¶
type PingAClient ¶
type PingAClient interface {
PingA(ctx context.Context, in *PingAReq, opts ...grpc.CallOption) (*PingAResponse, error)
}
PingAClient is the client API for PingA 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 NewPingAClient ¶
func NewPingAClient(cc grpc.ClientConnInterface) PingAClient
type PingAReq ¶
type PingAReq struct { Now int64 `protobuf:"varint,1,opt,name=now,proto3" json:"now,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // contains filtered or unexported fields }
func (*PingAReq) Descriptor
deprecated
func (*PingAReq) ProtoMessage ¶
func (*PingAReq) ProtoMessage()
func (*PingAReq) ProtoReflect ¶
func (x *PingAReq) ProtoReflect() protoreflect.Message
type PingAResponse ¶
type PingAResponse struct { Now int64 `protobuf:"varint,1,opt,name=now,proto3" json:"now,omitempty"` // contains filtered or unexported fields }
func (*PingAResponse) Descriptor
deprecated
func (*PingAResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingAResponse.ProtoReflect.Descriptor instead.
func (*PingAResponse) GetNow ¶
func (x *PingAResponse) GetNow() int64
func (*PingAResponse) ProtoMessage ¶
func (*PingAResponse) ProtoMessage()
func (*PingAResponse) ProtoReflect ¶
func (x *PingAResponse) ProtoReflect() protoreflect.Message
func (*PingAResponse) Reset ¶
func (x *PingAResponse) Reset()
func (*PingAResponse) String ¶
func (x *PingAResponse) String() string
type PingAServer ¶
type PingAServer interface { PingA(context.Context, *PingAReq) (*PingAResponse, error) // contains filtered or unexported methods }
PingAServer is the server API for PingA service. All implementations must embed UnimplementedPingAServer for forward compatibility
type PingBClient ¶
type PingBClient interface {
PingB(ctx context.Context, in *PingBReq, opts ...grpc.CallOption) (*PingBResponse, error)
}
PingBClient is the client API for PingB 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 NewPingBClient ¶
func NewPingBClient(cc grpc.ClientConnInterface) PingBClient
type PingBReq ¶
type PingBReq struct { Now int64 `protobuf:"varint,1,opt,name=now,proto3" json:"now,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // contains filtered or unexported fields }
func (*PingBReq) Descriptor
deprecated
func (*PingBReq) ProtoMessage ¶
func (*PingBReq) ProtoMessage()
func (*PingBReq) ProtoReflect ¶
func (x *PingBReq) ProtoReflect() protoreflect.Message
type PingBResponse ¶
type PingBResponse struct { Now int64 `protobuf:"varint,1,opt,name=now,proto3" json:"now,omitempty"` // contains filtered or unexported fields }
func (*PingBResponse) Descriptor
deprecated
func (*PingBResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingBResponse.ProtoReflect.Descriptor instead.
func (*PingBResponse) GetNow ¶
func (x *PingBResponse) GetNow() int64
func (*PingBResponse) ProtoMessage ¶
func (*PingBResponse) ProtoMessage()
func (*PingBResponse) ProtoReflect ¶
func (x *PingBResponse) ProtoReflect() protoreflect.Message
func (*PingBResponse) Reset ¶
func (x *PingBResponse) Reset()
func (*PingBResponse) String ¶
func (x *PingBResponse) String() string
type PingBServer ¶
type PingBServer interface { PingB(context.Context, *PingBReq) (*PingBResponse, error) // contains filtered or unexported methods }
PingBServer is the server API for PingB service. All implementations must embed UnimplementedPingBServer for forward compatibility
type PingCClient ¶
type PingCClient interface {
PingC(ctx context.Context, in *PingCReq, opts ...grpc.CallOption) (*PingCResponse, error)
}
PingCClient is the client API for PingC 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 NewPingCClient ¶
func NewPingCClient(cc grpc.ClientConnInterface) PingCClient
type PingCReq ¶
type PingCReq struct { Now int64 `protobuf:"varint,1,opt,name=now,proto3" json:"now,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // contains filtered or unexported fields }
func (*PingCReq) Descriptor
deprecated
func (*PingCReq) ProtoMessage ¶
func (*PingCReq) ProtoMessage()
func (*PingCReq) ProtoReflect ¶
func (x *PingCReq) ProtoReflect() protoreflect.Message
type PingCResponse ¶
type PingCResponse struct { Now int64 `protobuf:"varint,1,opt,name=now,proto3" json:"now,omitempty"` // contains filtered or unexported fields }
func (*PingCResponse) Descriptor
deprecated
func (*PingCResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingCResponse.ProtoReflect.Descriptor instead.
func (*PingCResponse) GetNow ¶
func (x *PingCResponse) GetNow() int64
func (*PingCResponse) ProtoMessage ¶
func (*PingCResponse) ProtoMessage()
func (*PingCResponse) ProtoReflect ¶
func (x *PingCResponse) ProtoReflect() protoreflect.Message
func (*PingCResponse) Reset ¶
func (x *PingCResponse) Reset()
func (*PingCResponse) String ¶
func (x *PingCResponse) String() string
type PingCServer ¶
type PingCServer interface { PingC(context.Context, *PingCReq) (*PingCResponse, error) // contains filtered or unexported methods }
PingCServer is the server API for PingC service. All implementations must embed UnimplementedPingCServer for forward compatibility
type UnimplementedPingAServer ¶
type UnimplementedPingAServer struct { }
UnimplementedPingAServer must be embedded to have forward compatible implementations.
func (UnimplementedPingAServer) PingA ¶
func (UnimplementedPingAServer) PingA(context.Context, *PingAReq) (*PingAResponse, error)
type UnimplementedPingBServer ¶
type UnimplementedPingBServer struct { }
UnimplementedPingBServer must be embedded to have forward compatible implementations.
func (UnimplementedPingBServer) PingB ¶
func (UnimplementedPingBServer) PingB(context.Context, *PingBReq) (*PingBResponse, error)
type UnimplementedPingCServer ¶
type UnimplementedPingCServer struct { }
UnimplementedPingCServer must be embedded to have forward compatible implementations.
func (UnimplementedPingCServer) PingC ¶
func (UnimplementedPingCServer) PingC(context.Context, *PingCReq) (*PingCResponse, error)
type UnsafePingAServer ¶
type UnsafePingAServer interface {
// contains filtered or unexported methods
}
UnsafePingAServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingAServer will result in compilation errors.
type UnsafePingBServer ¶
type UnsafePingBServer interface {
// contains filtered or unexported methods
}
UnsafePingBServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingBServer will result in compilation errors.
type UnsafePingCServer ¶
type UnsafePingCServer interface {
// contains filtered or unexported methods
}
UnsafePingCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingCServer will result in compilation errors.