pb

package
v0.0.0-...-3b8fdc3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RpcUserService_GetUserInfo_FullMethodName = "/pb.RpcUserService/GetUserInfo"
)

Variables

View Source
var File_rpcUserService_proto protoreflect.FileDescriptor
View Source
var RpcUserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.RpcUserService",
	HandlerType: (*RpcUserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserInfo",
			Handler:    _RpcUserService_GetUserInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "rpcUserService.proto",
}

RpcUserService_ServiceDesc is the grpc.ServiceDesc for RpcUserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRpcUserServiceServer

func RegisterRpcUserServiceServer(s grpc.ServiceRegistrar, srv RpcUserServiceServer)

Types

type GetUserInfoRequest

type GetUserInfoRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoRequest) Descriptor deprecated

func (*GetUserInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.

func (*GetUserInfoRequest) GetId

func (x *GetUserInfoRequest) GetId() string

func (*GetUserInfoRequest) ProtoMessage

func (*GetUserInfoRequest) ProtoMessage()

func (*GetUserInfoRequest) ProtoReflect

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

func (*GetUserInfoRequest) Reset

func (x *GetUserInfoRequest) Reset()

func (*GetUserInfoRequest) String

func (x *GetUserInfoRequest) String() string

type GetUserInfoResponse

type GetUserInfoResponse struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username  string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Nickname  string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Phone     string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	Email     string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	CreatedAt string `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserInfoResponse) Descriptor deprecated

func (*GetUserInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.

func (*GetUserInfoResponse) GetCreatedAt

func (x *GetUserInfoResponse) GetCreatedAt() string

func (*GetUserInfoResponse) GetEmail

func (x *GetUserInfoResponse) GetEmail() string

func (*GetUserInfoResponse) GetId

func (x *GetUserInfoResponse) GetId() int64

func (*GetUserInfoResponse) GetNickname

func (x *GetUserInfoResponse) GetNickname() string

func (*GetUserInfoResponse) GetPhone

func (x *GetUserInfoResponse) GetPhone() string

func (*GetUserInfoResponse) GetUsername

func (x *GetUserInfoResponse) GetUsername() string

func (*GetUserInfoResponse) ProtoMessage

func (*GetUserInfoResponse) ProtoMessage()

func (*GetUserInfoResponse) ProtoReflect

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

func (*GetUserInfoResponse) Reset

func (x *GetUserInfoResponse) Reset()

func (*GetUserInfoResponse) String

func (x *GetUserInfoResponse) String() string

type RpcUserServiceClient

type RpcUserServiceClient interface {
	GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error)
}

RpcUserServiceClient is the client API for RpcUserService 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.

type RpcUserServiceServer

type RpcUserServiceServer interface {
	GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
	// contains filtered or unexported methods
}

RpcUserServiceServer is the server API for RpcUserService service. All implementations must embed UnimplementedRpcUserServiceServer for forward compatibility

type UnimplementedRpcUserServiceServer

type UnimplementedRpcUserServiceServer struct {
}

UnimplementedRpcUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRpcUserServiceServer) GetUserInfo

type UnsafeRpcUserServiceServer

type UnsafeRpcUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRpcUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RpcUserServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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