Versions in this module Expand all Collapse all v0 v0.6.0 Jul 24, 2024 v0.5.0 Apr 11, 2024 v0.4.5 Apr 29, 2023 v0.4.4 Apr 23, 2023 v0.4.3 Apr 22, 2023 v0.4.2 Apr 20, 2023 v0.4.1 Apr 16, 2023 v0.4.0 Apr 9, 2023 Changes in this version + var File_entpb_entpb_proto protoreflect.FileDescriptor + var GetUserRequest_View_name = map[int32]string + var GetUserRequest_View_value = map[string]int32 + var ListUserRequest_View_name = map[int32]string + var ListUserRequest_View_value = map[string]int32 + var UserService_ServiceDesc = grpc.ServiceDesc + func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) + type BatchCreateUsersRequest struct + Requests []*CreateUserRequest + func (*BatchCreateUsersRequest) Descriptor() ([]byte, []int) + func (*BatchCreateUsersRequest) ProtoMessage() + func (x *BatchCreateUsersRequest) GetRequests() []*CreateUserRequest + func (x *BatchCreateUsersRequest) ProtoReflect() protoreflect.Message + func (x *BatchCreateUsersRequest) Reset() + func (x *BatchCreateUsersRequest) String() string + type BatchCreateUsersResponse struct + Users []*User + func (*BatchCreateUsersResponse) Descriptor() ([]byte, []int) + func (*BatchCreateUsersResponse) ProtoMessage() + func (x *BatchCreateUsersResponse) GetUsers() []*User + func (x *BatchCreateUsersResponse) ProtoReflect() protoreflect.Message + func (x *BatchCreateUsersResponse) Reset() + func (x *BatchCreateUsersResponse) String() string + type CreateUserRequest struct + User *User + func (*CreateUserRequest) Descriptor() ([]byte, []int) + func (*CreateUserRequest) ProtoMessage() + func (x *CreateUserRequest) GetUser() *User + func (x *CreateUserRequest) ProtoReflect() protoreflect.Message + func (x *CreateUserRequest) Reset() + func (x *CreateUserRequest) String() string + type DeleteUserRequest struct + Id int64 + func (*DeleteUserRequest) Descriptor() ([]byte, []int) + func (*DeleteUserRequest) ProtoMessage() + func (x *DeleteUserRequest) GetId() int64 + func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message + func (x *DeleteUserRequest) Reset() + func (x *DeleteUserRequest) String() string + type GetUserRequest struct + Id int64 + View GetUserRequest_View + func (*GetUserRequest) Descriptor() ([]byte, []int) + func (*GetUserRequest) ProtoMessage() + func (x *GetUserRequest) GetId() int64 + func (x *GetUserRequest) GetView() GetUserRequest_View + func (x *GetUserRequest) ProtoReflect() protoreflect.Message + func (x *GetUserRequest) Reset() + func (x *GetUserRequest) String() string + type GetUserRequest_View int32 + const GetUserRequest_BASIC + const GetUserRequest_VIEW_UNSPECIFIED + const GetUserRequest_WITH_EDGE_IDS + func (GetUserRequest_View) Descriptor() protoreflect.EnumDescriptor + func (GetUserRequest_View) EnumDescriptor() ([]byte, []int) + func (GetUserRequest_View) Type() protoreflect.EnumType + func (x GetUserRequest_View) Enum() *GetUserRequest_View + func (x GetUserRequest_View) Number() protoreflect.EnumNumber + func (x GetUserRequest_View) String() string + type ListUserRequest struct + PageSize int32 + PageToken string + View ListUserRequest_View + func (*ListUserRequest) Descriptor() ([]byte, []int) + func (*ListUserRequest) ProtoMessage() + func (x *ListUserRequest) GetPageSize() int32 + func (x *ListUserRequest) GetPageToken() string + func (x *ListUserRequest) GetView() ListUserRequest_View + func (x *ListUserRequest) ProtoReflect() protoreflect.Message + func (x *ListUserRequest) Reset() + func (x *ListUserRequest) String() string + type ListUserRequest_View int32 + const ListUserRequest_BASIC + const ListUserRequest_VIEW_UNSPECIFIED + const ListUserRequest_WITH_EDGE_IDS + func (ListUserRequest_View) Descriptor() protoreflect.EnumDescriptor + func (ListUserRequest_View) EnumDescriptor() ([]byte, []int) + func (ListUserRequest_View) Type() protoreflect.EnumType + func (x ListUserRequest_View) Enum() *ListUserRequest_View + func (x ListUserRequest_View) Number() protoreflect.EnumNumber + func (x ListUserRequest_View) String() string + type ListUserResponse struct + NextPageToken string + UserList []*User + func (*ListUserResponse) Descriptor() ([]byte, []int) + func (*ListUserResponse) ProtoMessage() + func (x *ListUserResponse) GetNextPageToken() string + func (x *ListUserResponse) GetUserList() []*User + func (x *ListUserResponse) ProtoReflect() protoreflect.Message + func (x *ListUserResponse) Reset() + func (x *ListUserResponse) String() string + type UnimplementedUserServiceServer struct + func (UnimplementedUserServiceServer) BatchCreate(context.Context, *BatchCreateUsersRequest) (*BatchCreateUsersResponse, error) + func (UnimplementedUserServiceServer) Create(context.Context, *CreateUserRequest) (*User, error) + func (UnimplementedUserServiceServer) Delete(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) + func (UnimplementedUserServiceServer) Get(context.Context, *GetUserRequest) (*User, error) + func (UnimplementedUserServiceServer) List(context.Context, *ListUserRequest) (*ListUserResponse, error) + func (UnimplementedUserServiceServer) Update(context.Context, *UpdateUserRequest) (*User, error) + type UnsafeUserServiceServer interface + type UpdateUserRequest struct + User *User + func (*UpdateUserRequest) Descriptor() ([]byte, []int) + func (*UpdateUserRequest) ProtoMessage() + func (x *UpdateUserRequest) GetUser() *User + func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message + func (x *UpdateUserRequest) Reset() + func (x *UpdateUserRequest) String() string + type User struct + Id int64 + Name string + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (x *User) GetId() int64 + func (x *User) GetName() string + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type UserService struct + func NewUserService(client *ent.Client) *UserService + func (svc *UserService) BatchCreate(ctx context.Context, req *BatchCreateUsersRequest) (*BatchCreateUsersResponse, error) + func (svc *UserService) Create(ctx context.Context, req *CreateUserRequest) (*User, error) + func (svc *UserService) Delete(ctx context.Context, req *DeleteUserRequest) (*emptypb.Empty, error) + func (svc *UserService) Get(ctx context.Context, req *GetUserRequest) (*User, error) + func (svc *UserService) List(ctx context.Context, req *ListUserRequest) (*ListUserResponse, error) + func (svc *UserService) Update(ctx context.Context, req *UpdateUserRequest) (*User, error) + type UserServiceClient interface + BatchCreate func(ctx context.Context, in *BatchCreateUsersRequest, opts ...grpc.CallOption) (*BatchCreateUsersResponse, error) + Create func(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) + Delete func(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Get func(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) + List func(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) + Update func(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) + func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient + type UserServiceServer interface + BatchCreate func(context.Context, *BatchCreateUsersRequest) (*BatchCreateUsersResponse, error) + Create func(context.Context, *CreateUserRequest) (*User, error) + Delete func(context.Context, *DeleteUserRequest) (*emptypb.Empty, error) + Get func(context.Context, *GetUserRequest) (*User, error) + List func(context.Context, *ListUserRequest) (*ListUserResponse, error) + Update func(context.Context, *UpdateUserRequest) (*User, error)