user

package
v0.0.0-...-67f6177 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserInfo_GetUser_FullMethodName  = "/user.UserInfo/getUser"
	UserInfo_GetUser1_FullMethodName = "/user.UserInfo/getUser1"
)
View Source
const (
	UserAction_GetUser_FullMethodName  = "/user.UserAction/getUser"
	UserAction_GetAAF_FullMethodName   = "/user.UserAction/getAAF"
	UserAction_GetUser1_FullMethodName = "/user.UserAction/getUser1"
)

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use IdRequest.ProtoReflect.Descriptor instead.

func (*IdRequest) GetId

func (x *IdRequest) GetId() string

func (*IdRequest) ProtoMessage

func (*IdRequest) ProtoMessage()

func (*IdRequest) ProtoReflect

func (x *IdRequest) ProtoReflect() protoreflect.Message

func (*IdRequest) Reset

func (x *IdRequest) Reset()

func (*IdRequest) String

func (x *IdRequest) String() string

type UnimplementedUserActionServer

type UnimplementedUserActionServer struct {
}

UnimplementedUserActionServer must be embedded to have forward compatible implementations.

func (UnimplementedUserActionServer) GetAAF

func (UnimplementedUserActionServer) GetUser

func (UnimplementedUserActionServer) GetUser1

type UnimplementedUserInfoServer

type UnimplementedUserInfoServer struct {
}

UnimplementedUserInfoServer must be embedded to have forward compatible implementations.

func (UnimplementedUserInfoServer) GetUser

func (UnimplementedUserInfoServer) GetUser1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL