Documentation
¶
Index ¶
- Variables
- func RegisterChatServiceServer(s grpc.ServiceRegistrar, srv ChatServiceServer)
- type ChatServiceClient
- type ChatServiceClientWrapper
- func (h *ChatServiceClientWrapper) BiDiStream(ctx *gofr.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Request, Response], error)
- func (h *ChatServiceClientWrapper) ClientStream(ctx *gofr.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[Request, Response], error)
- func (h *ChatServiceClientWrapper) ServerStream(ctx *gofr.Context, req *Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Response], error)
- type ChatServiceGoFrClient
- type ChatServiceServer
- type ChatService_BiDiStreamClient
- type ChatService_BiDiStreamServer
- type ChatService_ClientStreamClient
- type ChatService_ClientStreamServer
- type ChatService_ServerStreamClient
- type ChatService_ServerStreamServer
- 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 Request
- type Response
- type UnimplementedChatServiceServer
- type UnsafeChatServiceServer
Constants ¶
This section is empty.
Variables ¶
var ChatService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ChatService", HandlerType: (*ChatServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "ServerStream", Handler: _ChatService_ServerStream_Handler, ServerStreams: true, }, { StreamName: "ClientStream", Handler: _ChatService_ClientStream_Handler, ClientStreams: true, }, { StreamName: "BiDiStream", Handler: _ChatService_BiDiStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "chat.proto", }
ChatService_ServiceDesc is the grpc.ServiceDesc for ChatService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_chat_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChatServiceServer ¶
func RegisterChatServiceServer(s grpc.ServiceRegistrar, srv ChatServiceServer)
Types ¶
type ChatServiceClient ¶
type ChatServiceClient interface {
ServerStream(ctx context.Context, in *Request, opts ...grpc.CallOption) (ChatService_ServerStreamClient, error)
ClientStream(ctx context.Context, opts ...grpc.CallOption) (ChatService_ClientStreamClient, error)
BiDiStream(ctx context.Context, opts ...grpc.CallOption) (ChatService_BiDiStreamClient, error)
}
ChatServiceClient is the client API for ChatService 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 NewChatServiceClient ¶
func NewChatServiceClient(cc grpc.ClientConnInterface) ChatServiceClient
type ChatServiceClientWrapper ¶
type ChatServiceClientWrapper struct {
HealthClient
// contains filtered or unexported fields
}
func (*ChatServiceClientWrapper) BiDiStream ¶
func (h *ChatServiceClientWrapper) BiDiStream(ctx *gofr.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Request, Response], error)
func (*ChatServiceClientWrapper) ClientStream ¶
func (h *ChatServiceClientWrapper) ClientStream(ctx *gofr.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[Request, Response], error)
func (*ChatServiceClientWrapper) ServerStream ¶
func (h *ChatServiceClientWrapper) ServerStream(ctx *gofr.Context, req *Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Response], error)
type ChatServiceGoFrClient ¶
type ChatServiceGoFrClient interface {
ServerStream(ctx *gofr.Context, req *Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Response], error)
ClientStream(ctx *gofr.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[Request, Response], error)
BiDiStream(ctx *gofr.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Request, Response], error)
HealthClient
}
func NewChatServiceGoFrClient ¶
func NewChatServiceGoFrClient(host string, metrics metrics.Manager, dialOptions ...grpc.DialOption) (ChatServiceGoFrClient, error)
type ChatServiceServer ¶
type ChatServiceServer interface {
ServerStream(*Request, ChatService_ServerStreamServer) error
ClientStream(ChatService_ClientStreamServer) error
BiDiStream(ChatService_BiDiStreamServer) error
// contains filtered or unexported methods
}
ChatServiceServer is the server API for ChatService service. All implementations must embed UnimplementedChatServiceServer for forward compatibility
type ChatService_ServerStreamClient ¶
type ChatService_ServerStreamClient interface {
Recv() (*Response, error)
grpc.ClientStream
}
type ChatService_ServerStreamServer ¶
type ChatService_ServerStreamServer interface {
Send(*Response) error
grpc.ServerStream
}
type HealthClient ¶
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 ¶
func NewHealthClient(conn *grpc.ClientConn) HealthClient
type HealthClientWrapper ¶
type HealthClientWrapper struct {
// contains filtered or unexported fields
}
func (*HealthClientWrapper) Check ¶
func (h *HealthClientWrapper) Check(ctx *gofr.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error)
func (*HealthClientWrapper) Watch ¶
func (h *HealthClientWrapper) Watch(ctx *gofr.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[grpc_health_v1.HealthCheckResponse], error)
type Request ¶
type Request struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetMessage ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedChatServiceServer ¶
type UnimplementedChatServiceServer struct {
}
UnimplementedChatServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedChatServiceServer) BiDiStream ¶
func (UnimplementedChatServiceServer) BiDiStream(ChatService_BiDiStreamServer) error
func (UnimplementedChatServiceServer) ClientStream ¶
func (UnimplementedChatServiceServer) ClientStream(ChatService_ClientStreamServer) error
func (UnimplementedChatServiceServer) ServerStream ¶
func (UnimplementedChatServiceServer) ServerStream(*Request, ChatService_ServerStreamServer) error
type UnsafeChatServiceServer ¶
type UnsafeChatServiceServer interface {
// contains filtered or unexported methods
}
UnsafeChatServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChatServiceServer will result in compilation errors.