Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserActionServer(s grpc.ServiceRegistrar, srv UserActionServer)
- func RegisterUserInfoServer(s grpc.ServiceRegistrar, srv UserInfoServer)
- type IdRequest
- type UnimplementedUserActionServer
- type UnimplementedUserInfoServer
- type UnsafeUserActionServer
- type UnsafeUserInfoServer
- type UserActionClient
- type UserActionServer
- type UserInfoClient
- type UserInfoReponse
- func (*UserInfoReponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoReponse) GetEmail() string
- func (x *UserInfoReponse) GetId() int32
- func (x *UserInfoReponse) GetNickname() string
- func (x *UserInfoReponse) GetUsername() string
- func (*UserInfoReponse) ProtoMessage()
- func (x *UserInfoReponse) ProtoReflect() protoreflect.Message
- func (x *UserInfoReponse) Reset()
- func (x *UserInfoReponse) String() string
- type UserInfoServer
Constants ¶
const ( UserInfo_GetUser_FullMethodName = "/user.UserInfo/getUser" UserInfo_GetUser1_FullMethodName = "/user.UserInfo/getUser1" )
const ( UserAction_GetUser_FullMethodName = "/user.UserAction/getUser" UserAction_GetAAF_FullMethodName = "/user.UserAction/getAAF" UserAction_GetUser1_FullMethodName = "/user.UserAction/getUser1" )
Variables ¶
var File_user_proto protoreflect.FileDescriptor
var UserAction_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserAction", HandlerType: (*UserActionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getUser", Handler: _UserAction_GetUser_Handler, }, { MethodName: "getAAF", Handler: _UserAction_GetAAF_Handler, }, { MethodName: "getUser1", Handler: _UserAction_GetUser1_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.proto", }
UserAction_ServiceDesc is the grpc.ServiceDesc for UserAction service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserInfo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserInfo", HandlerType: (*UserInfoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getUser", Handler: _UserInfo_GetUser_Handler, }, { MethodName: "getUser1", Handler: _UserInfo_GetUser1_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.proto", }
UserInfo_ServiceDesc is the grpc.ServiceDesc for UserInfo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserActionServer ¶
func RegisterUserActionServer(s grpc.ServiceRegistrar, srv UserActionServer)
func RegisterUserInfoServer ¶
func RegisterUserInfoServer(s grpc.ServiceRegistrar, srv UserInfoServer)
Types ¶
type IdRequest ¶
type IdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdRequest) Descriptor
deprecated
func (*IdRequest) ProtoMessage ¶
func (*IdRequest) ProtoMessage()
func (*IdRequest) ProtoReflect ¶
func (x *IdRequest) ProtoReflect() protoreflect.Message
type UnimplementedUserActionServer ¶
type UnimplementedUserActionServer struct { }
UnimplementedUserActionServer must be embedded to have forward compatible implementations.
func (UnimplementedUserActionServer) GetAAF ¶
func (UnimplementedUserActionServer) GetAAF(context.Context, *IdRequest) (*UserInfoReponse, error)
func (UnimplementedUserActionServer) GetUser ¶
func (UnimplementedUserActionServer) GetUser(context.Context, *IdRequest) (*UserInfoReponse, error)
func (UnimplementedUserActionServer) GetUser1 ¶
func (UnimplementedUserActionServer) GetUser1(context.Context, *IdRequest) (*UserInfoReponse, error)
type UnimplementedUserInfoServer ¶
type UnimplementedUserInfoServer struct { }
UnimplementedUserInfoServer must be embedded to have forward compatible implementations.
func (UnimplementedUserInfoServer) GetUser ¶
func (UnimplementedUserInfoServer) GetUser(context.Context, *IdRequest) (*UserInfoReponse, error)
func (UnimplementedUserInfoServer) GetUser1 ¶
func (UnimplementedUserInfoServer) GetUser1(context.Context, *IdRequest) (*UserInfoReponse, error)
type UnsafeUserActionServer ¶
type UnsafeUserActionServer interface {
// contains filtered or unexported methods
}
UnsafeUserActionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserActionServer will result in compilation errors.
type UnsafeUserInfoServer ¶
type UnsafeUserInfoServer interface {
// contains filtered or unexported methods
}
UnsafeUserInfoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserInfoServer will result in compilation errors.
type UserActionClient ¶
type UserActionClient interface { GetUser(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*UserInfoReponse, error) GetAAF(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*UserInfoReponse, error) GetUser1(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*UserInfoReponse, error) }
UserActionClient is the client API for UserAction 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 NewUserActionClient ¶
func NewUserActionClient(cc grpc.ClientConnInterface) UserActionClient
type UserActionServer ¶
type UserActionServer interface { GetUser(context.Context, *IdRequest) (*UserInfoReponse, error) GetAAF(context.Context, *IdRequest) (*UserInfoReponse, error) GetUser1(context.Context, *IdRequest) (*UserInfoReponse, error) // contains filtered or unexported methods }
UserActionServer is the server API for UserAction service. All implementations must embed UnimplementedUserActionServer for forward compatibility
type UserInfoClient ¶
type UserInfoClient interface { GetUser(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*UserInfoReponse, error) GetUser1(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*UserInfoReponse, error) }
UserInfoClient is the client API for UserInfo 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 NewUserInfoClient ¶
func NewUserInfoClient(cc grpc.ClientConnInterface) UserInfoClient
type UserInfoReponse ¶
type UserInfoReponse struct { // 用户id Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // contains filtered or unexported fields }
func (*UserInfoReponse) Descriptor
deprecated
func (*UserInfoReponse) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoReponse.ProtoReflect.Descriptor instead.
func (*UserInfoReponse) GetEmail ¶
func (x *UserInfoReponse) GetEmail() string
func (*UserInfoReponse) GetId ¶
func (x *UserInfoReponse) GetId() int32
func (*UserInfoReponse) GetNickname ¶
func (x *UserInfoReponse) GetNickname() string
func (*UserInfoReponse) GetUsername ¶
func (x *UserInfoReponse) GetUsername() string
func (*UserInfoReponse) ProtoMessage ¶
func (*UserInfoReponse) ProtoMessage()
func (*UserInfoReponse) ProtoReflect ¶
func (x *UserInfoReponse) ProtoReflect() protoreflect.Message
func (*UserInfoReponse) Reset ¶
func (x *UserInfoReponse) Reset()
func (*UserInfoReponse) String ¶
func (x *UserInfoReponse) String() string
type UserInfoServer ¶
type UserInfoServer interface { GetUser(context.Context, *IdRequest) (*UserInfoReponse, error) GetUser1(context.Context, *IdRequest) (*UserInfoReponse, error) // contains filtered or unexported methods }
UserInfoServer is the server API for UserInfo service. All implementations must embed UnimplementedUserInfoServer for forward compatibility