Documentation ¶
Index ¶
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type GetMyMessagesReply
- func (*GetMyMessagesReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetMyMessagesReply) GetMessages() []*Message
- func (*GetMyMessagesReply) ProtoMessage()
- func (x *GetMyMessagesReply) ProtoReflect() protoreflect.Message
- func (x *GetMyMessagesReply) Reset()
- func (x *GetMyMessagesReply) String() string
- type GetMyMessagesRequest
- func (*GetMyMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMyMessagesRequest) GetCount() int64
- func (*GetMyMessagesRequest) ProtoMessage()
- func (x *GetMyMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *GetMyMessagesRequest) Reset()
- func (x *GetMyMessagesRequest) String() string
- type Message
- type UnimplementedUserServer
- type UnsafeUserServer
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- type UserHTTPServer
- type UserServer
Constants ¶
This section is empty.
Variables ¶
var File_traces_api_user_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.v1.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMyMessages", Handler: _User_GetMyMessages_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "traces/api/user/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type GetMyMessagesReply ¶
type GetMyMessagesReply struct { Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*GetMyMessagesReply) Descriptor
deprecated
func (*GetMyMessagesReply) Descriptor() ([]byte, []int)
Deprecated: Use GetMyMessagesReply.ProtoReflect.Descriptor instead.
func (*GetMyMessagesReply) GetMessages ¶
func (x *GetMyMessagesReply) GetMessages() []*Message
func (*GetMyMessagesReply) ProtoMessage ¶
func (*GetMyMessagesReply) ProtoMessage()
func (*GetMyMessagesReply) ProtoReflect ¶
func (x *GetMyMessagesReply) ProtoReflect() protoreflect.Message
func (*GetMyMessagesReply) Reset ¶
func (x *GetMyMessagesReply) Reset()
func (*GetMyMessagesReply) String ¶
func (x *GetMyMessagesReply) String() string
type GetMyMessagesRequest ¶
type GetMyMessagesRequest struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GetMyMessagesRequest) Descriptor
deprecated
func (*GetMyMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMyMessagesRequest.ProtoReflect.Descriptor instead.
func (*GetMyMessagesRequest) GetCount ¶
func (x *GetMyMessagesRequest) GetCount() int64
func (*GetMyMessagesRequest) ProtoMessage ¶
func (*GetMyMessagesRequest) ProtoMessage()
func (*GetMyMessagesRequest) ProtoReflect ¶
func (x *GetMyMessagesRequest) ProtoReflect() protoreflect.Message
func (*GetMyMessagesRequest) Reset ¶
func (x *GetMyMessagesRequest) Reset()
func (*GetMyMessagesRequest) String ¶
func (x *GetMyMessagesRequest) String() string
type Message ¶
type Message struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) GetMyMessages ¶
func (UnimplementedUserServer) GetMyMessages(context.Context, *GetMyMessagesRequest) (*GetMyMessagesReply, error)
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶
type UserClient interface {
GetMyMessages(ctx context.Context, in *GetMyMessagesRequest, opts ...grpc.CallOption) (*GetMyMessagesReply, error)
}
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserHTTPClient ¶
type UserHTTPClient interface {
GetMyMessages(ctx context.Context, req *GetMyMessagesRequest, opts ...http.CallOption) (rsp *GetMyMessagesReply, err error)
}
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) GetMyMessages ¶
func (c *UserHTTPClientImpl) GetMyMessages(ctx context.Context, in *GetMyMessagesRequest, opts ...http.CallOption) (*GetMyMessagesReply, error)
type UserHTTPServer ¶
type UserHTTPServer interface {
GetMyMessages(context.Context, *GetMyMessagesRequest) (*GetMyMessagesReply, error)
}
type UserServer ¶
type UserServer interface { GetMyMessages(context.Context, *GetMyMessagesRequest) (*GetMyMessagesReply, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility