Documentation
¶
Overview ¶
Code generated by gofr.dev/cli/gofr. DO NOT EDIT.
Code generated by gofr.dev/cli/gofr. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterGoodbyeServer(s grpc.ServiceRegistrar, srv GoodbyeServer)
- func RegisterHelloServer(s grpc.ServiceRegistrar, srv HelloServer)
- type GoodbyeClient
- type GoodbyeRequest
- type GoodbyeResponse
- type GoodbyeServer
- type HealthClient
- type HealthClientWrapper
- func (h *HealthClientWrapper) Check(ctx *gofr.Context, in *grpc_health_v1.HealthCheckRequest, ...) (*grpc_health_v1.HealthCheckResponse, error)
- func (h *HealthClientWrapper) Watch(ctx *gofr.Context, in *grpc_health_v1.HealthCheckRequest, ...) (grpc.ServerStreamingClient[grpc_health_v1.HealthCheckResponse], error)
- type HelloClient
- type HelloClientWrapper
- type HelloGoFrClient
- type HelloRequest
- type HelloResponse
- type HelloServer
- type UnimplementedGoodbyeServer
- type UnimplementedHelloServer
- type UnsafeGoodbyeServer
- type UnsafeHelloServer
Constants ¶
const (
Goodbye_SayGoodbye_FullMethodName = "/Goodbye/SayGoodbye"
)
const (
Hello_SayHello_FullMethodName = "/Hello/SayHello"
)
Variables ¶
var File_hello_proto protoreflect.FileDescriptor
var Goodbye_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Goodbye", HandlerType: (*GoodbyeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayGoodbye", Handler: _Goodbye_SayGoodbye_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hello.proto", }
Goodbye_ServiceDesc is the grpc.ServiceDesc for Goodbye service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Hello_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Hello", HandlerType: (*HelloServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayHello", Handler: _Hello_SayHello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "hello.proto", }
Hello_ServiceDesc is the grpc.ServiceDesc for Hello service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGoodbyeServer ¶ added in v1.33.0
func RegisterGoodbyeServer(s grpc.ServiceRegistrar, srv GoodbyeServer)
func RegisterHelloServer ¶
func RegisterHelloServer(s grpc.ServiceRegistrar, srv HelloServer)
Types ¶
type GoodbyeClient ¶ added in v1.33.0
type GoodbyeClient interface {
SayGoodbye(ctx context.Context, in *GoodbyeRequest, opts ...grpc.CallOption) (*GoodbyeResponse, error)
}
GoodbyeClient is the client API for Goodbye 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 NewGoodbyeClient ¶ added in v1.33.0
func NewGoodbyeClient(cc grpc.ClientConnInterface) GoodbyeClient
type GoodbyeRequest ¶ added in v1.33.0
type GoodbyeRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GoodbyeRequest) Descriptor
deprecated
added in
v1.33.0
func (*GoodbyeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GoodbyeRequest.ProtoReflect.Descriptor instead.
func (*GoodbyeRequest) GetName ¶ added in v1.33.0
func (x *GoodbyeRequest) GetName() string
func (*GoodbyeRequest) ProtoMessage ¶ added in v1.33.0
func (*GoodbyeRequest) ProtoMessage()
func (*GoodbyeRequest) ProtoReflect ¶ added in v1.33.0
func (x *GoodbyeRequest) ProtoReflect() protoreflect.Message
func (*GoodbyeRequest) Reset ¶ added in v1.33.0
func (x *GoodbyeRequest) Reset()
func (*GoodbyeRequest) String ¶ added in v1.33.0
func (x *GoodbyeRequest) String() string
type GoodbyeResponse ¶ added in v1.33.0
type GoodbyeResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*GoodbyeResponse) Descriptor
deprecated
added in
v1.33.0
func (*GoodbyeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GoodbyeResponse.ProtoReflect.Descriptor instead.
func (*GoodbyeResponse) GetMessage ¶ added in v1.33.0
func (x *GoodbyeResponse) GetMessage() string
func (*GoodbyeResponse) ProtoMessage ¶ added in v1.33.0
func (*GoodbyeResponse) ProtoMessage()
func (*GoodbyeResponse) ProtoReflect ¶ added in v1.33.0
func (x *GoodbyeResponse) ProtoReflect() protoreflect.Message
func (*GoodbyeResponse) Reset ¶ added in v1.33.0
func (x *GoodbyeResponse) Reset()
func (*GoodbyeResponse) String ¶ added in v1.33.0
func (x *GoodbyeResponse) String() string
type GoodbyeServer ¶ added in v1.33.0
type GoodbyeServer interface { SayGoodbye(context.Context, *GoodbyeRequest) (*GoodbyeResponse, error) // contains filtered or unexported methods }
GoodbyeServer is the server API for Goodbye service. All implementations must embed UnimplementedGoodbyeServer for forward compatibility.
type HealthClient ¶ added in v1.33.0
type HealthClient interface { Check(ctx *gofr.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error) Watch(ctx *gofr.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) ( grpc.ServerStreamingClient[grpc_health_v1.HealthCheckResponse], error) }
func NewHealthClient ¶ added in v1.33.0
func NewHealthClient(conn *grpc.ClientConn) HealthClient
type HealthClientWrapper ¶ added in v1.33.0
type HealthClientWrapper struct {
// contains filtered or unexported fields
}
func (*HealthClientWrapper) Check ¶ added in v1.33.0
func (h *HealthClientWrapper) Check(ctx *gofr.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthClientWrapper) Watch ¶ added in v1.33.0
func (h *HealthClientWrapper) Watch(ctx *gofr.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[grpc_health_v1.HealthCheckResponse], error)
type HelloClient ¶
type HelloClient interface {
SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}
HelloClient is the client API for Hello 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 NewHelloClient ¶
func NewHelloClient(cc grpc.ClientConnInterface) HelloClient
type HelloClientWrapper ¶
type HelloClientWrapper struct { HealthClient // contains filtered or unexported fields }
func (*HelloClientWrapper) SayHello ¶
func (h *HelloClientWrapper) SayHello(ctx *gofr.Context, req *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
type HelloGoFrClient ¶
type HelloGoFrClient interface { SayHello(*gofr.Context, *HelloRequest, ...grpc.CallOption) (*HelloResponse, error) HealthClient }
func NewHelloGoFrClient ¶
func NewHelloGoFrClient(host string, metrics metrics.Manager) (HelloGoFrClient, error)
type HelloRequest ¶
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type HelloResponse ¶
type HelloResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HelloResponse) Descriptor
deprecated
func (*HelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.
func (*HelloResponse) GetMessage ¶
func (x *HelloResponse) GetMessage() string
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) ProtoReflect ¶
func (x *HelloResponse) ProtoReflect() protoreflect.Message
func (*HelloResponse) Reset ¶
func (x *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (x *HelloResponse) String() string
type HelloServer ¶
type HelloServer interface { SayHello(context.Context, *HelloRequest) (*HelloResponse, error) // contains filtered or unexported methods }
HelloServer is the server API for Hello service. All implementations must embed UnimplementedHelloServer for forward compatibility.
type UnimplementedGoodbyeServer ¶ added in v1.33.0
type UnimplementedGoodbyeServer struct{}
UnimplementedGoodbyeServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGoodbyeServer) SayGoodbye ¶ added in v1.33.0
func (UnimplementedGoodbyeServer) SayGoodbye(context.Context, *GoodbyeRequest) (*GoodbyeResponse, error)
type UnimplementedHelloServer ¶
type UnimplementedHelloServer struct{}
UnimplementedHelloServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedHelloServer) SayHello ¶
func (UnimplementedHelloServer) SayHello(context.Context, *HelloRequest) (*HelloResponse, error)
type UnsafeGoodbyeServer ¶ added in v1.33.0
type UnsafeGoodbyeServer interface {
// contains filtered or unexported methods
}
UnsafeGoodbyeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoodbyeServer will result in compilation errors.
type UnsafeHelloServer ¶
type UnsafeHelloServer interface {
// contains filtered or unexported methods
}
UnsafeHelloServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HelloServer will result in compilation errors.