Versions in this module Expand all Collapse all v1 v1.0.0 Dec 4, 2023 Changes in this version + var File_user_proto protoreflect.FileDescriptor + var UserService_ServiceDesc = grpc.ServiceDesc + func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) + type CreateUserInput struct + Email string + Name string + Phone string + func (*CreateUserInput) Descriptor() ([]byte, []int) + func (*CreateUserInput) ProtoMessage() + func (m *CreateUserInput) Validate() error + func (m *CreateUserInput) ValidateAll() error + func (x *CreateUserInput) GetEmail() string + func (x *CreateUserInput) GetName() string + func (x *CreateUserInput) GetPhone() string + func (x *CreateUserInput) ProtoReflect() protoreflect.Message + func (x *CreateUserInput) Reset() + func (x *CreateUserInput) String() string + type CreateUserInputMultiError []error + func (m CreateUserInputMultiError) AllErrors() []error + func (m CreateUserInputMultiError) Error() string + type CreateUserInputValidationError struct + func (e CreateUserInputValidationError) Cause() error + func (e CreateUserInputValidationError) Error() string + func (e CreateUserInputValidationError) ErrorName() string + func (e CreateUserInputValidationError) Field() string + func (e CreateUserInputValidationError) Key() bool + func (e CreateUserInputValidationError) Reason() string + type DeleteUserInput struct + Id string + func (*DeleteUserInput) Descriptor() ([]byte, []int) + func (*DeleteUserInput) ProtoMessage() + func (m *DeleteUserInput) Validate() error + func (m *DeleteUserInput) ValidateAll() error + func (x *DeleteUserInput) GetId() string + func (x *DeleteUserInput) ProtoReflect() protoreflect.Message + func (x *DeleteUserInput) Reset() + func (x *DeleteUserInput) String() string + type DeleteUserInputMultiError []error + func (m DeleteUserInputMultiError) AllErrors() []error + func (m DeleteUserInputMultiError) Error() string + type DeleteUserInputValidationError struct + func (e DeleteUserInputValidationError) Cause() error + func (e DeleteUserInputValidationError) Error() string + func (e DeleteUserInputValidationError) ErrorName() string + func (e DeleteUserInputValidationError) Field() string + func (e DeleteUserInputValidationError) Key() bool + func (e DeleteUserInputValidationError) Reason() string + type DetailUserInput struct + Id string + func (*DetailUserInput) Descriptor() ([]byte, []int) + func (*DetailUserInput) ProtoMessage() + func (m *DetailUserInput) Validate() error + func (m *DetailUserInput) ValidateAll() error + func (x *DetailUserInput) GetId() string + func (x *DetailUserInput) ProtoReflect() protoreflect.Message + func (x *DetailUserInput) Reset() + func (x *DetailUserInput) String() string + type DetailUserInputMultiError []error + func (m DetailUserInputMultiError) AllErrors() []error + func (m DetailUserInputMultiError) Error() string + type DetailUserInputValidationError struct + func (e DetailUserInputValidationError) Cause() error + func (e DetailUserInputValidationError) Error() string + func (e DetailUserInputValidationError) ErrorName() string + func (e DetailUserInputValidationError) Field() string + func (e DetailUserInputValidationError) Key() bool + func (e DetailUserInputValidationError) Reason() string + type ListUserInput struct + Limit int32 + Page int32 + Search *string + func (*ListUserInput) Descriptor() ([]byte, []int) + func (*ListUserInput) ProtoMessage() + func (m *ListUserInput) Validate() error + func (m *ListUserInput) ValidateAll() error + func (x *ListUserInput) GetLimit() int32 + func (x *ListUserInput) GetPage() int32 + func (x *ListUserInput) GetSearch() string + func (x *ListUserInput) ProtoReflect() protoreflect.Message + func (x *ListUserInput) Reset() + func (x *ListUserInput) String() string + type ListUserInputMultiError []error + func (m ListUserInputMultiError) AllErrors() []error + func (m ListUserInputMultiError) Error() string + type ListUserInputValidationError struct + func (e ListUserInputValidationError) Cause() error + func (e ListUserInputValidationError) Error() string + func (e ListUserInputValidationError) ErrorName() string + func (e ListUserInputValidationError) Field() string + func (e ListUserInputValidationError) Key() bool + func (e ListUserInputValidationError) Reason() string + type ListUserResponse struct + Limit int32 + Page int32 + Total int32 + TotalPage int32 + Users []*User + func (*ListUserResponse) Descriptor() ([]byte, []int) + func (*ListUserResponse) ProtoMessage() + func (m *ListUserResponse) Validate() error + func (m *ListUserResponse) ValidateAll() error + func (x *ListUserResponse) GetLimit() int32 + func (x *ListUserResponse) GetPage() int32 + func (x *ListUserResponse) GetTotal() int32 + func (x *ListUserResponse) GetTotalPage() int32 + func (x *ListUserResponse) GetUsers() []*User + func (x *ListUserResponse) ProtoReflect() protoreflect.Message + func (x *ListUserResponse) Reset() + func (x *ListUserResponse) String() string + type ListUserResponseMultiError []error + func (m ListUserResponseMultiError) AllErrors() []error + func (m ListUserResponseMultiError) Error() string + type ListUserResponseValidationError struct + func (e ListUserResponseValidationError) Cause() error + func (e ListUserResponseValidationError) Error() string + func (e ListUserResponseValidationError) ErrorName() string + func (e ListUserResponseValidationError) Field() string + func (e ListUserResponseValidationError) Key() bool + func (e ListUserResponseValidationError) Reason() string + type UnimplementedUserServiceServer struct + func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserInput) (*User, error) + func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserInput) (*User, error) + func (UnimplementedUserServiceServer) DetailUser(context.Context, *DetailUserInput) (*User, error) + func (UnimplementedUserServiceServer) ListUser(context.Context, *ListUserInput) (*ListUserResponse, error) + func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserInput) (*User, error) + type UnsafeUserServiceServer interface + type UpdateUserInput struct + Email string + Id string + Name string + Phone string + func (*UpdateUserInput) Descriptor() ([]byte, []int) + func (*UpdateUserInput) ProtoMessage() + func (m *UpdateUserInput) Validate() error + func (m *UpdateUserInput) ValidateAll() error + func (x *UpdateUserInput) GetEmail() string + func (x *UpdateUserInput) GetId() string + func (x *UpdateUserInput) GetName() string + func (x *UpdateUserInput) GetPhone() string + func (x *UpdateUserInput) ProtoReflect() protoreflect.Message + func (x *UpdateUserInput) Reset() + func (x *UpdateUserInput) String() string + type UpdateUserInputMultiError []error + func (m UpdateUserInputMultiError) AllErrors() []error + func (m UpdateUserInputMultiError) Error() string + type UpdateUserInputValidationError struct + func (e UpdateUserInputValidationError) Cause() error + func (e UpdateUserInputValidationError) Error() string + func (e UpdateUserInputValidationError) ErrorName() string + func (e UpdateUserInputValidationError) Field() string + func (e UpdateUserInputValidationError) Key() bool + func (e UpdateUserInputValidationError) Reason() string + type User struct + CreatedAt *timestamppb.Timestamp + Email string + Id string + Name string + Phone string + UpdatedAt *timestamppb.Timestamp + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (m *User) Validate() error + func (m *User) ValidateAll() error + func (x *User) GetCreatedAt() *timestamppb.Timestamp + func (x *User) GetEmail() string + func (x *User) GetId() string + func (x *User) GetName() string + func (x *User) GetPhone() string + func (x *User) GetUpdatedAt() *timestamppb.Timestamp + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type UserMultiError []error + func (m UserMultiError) AllErrors() []error + func (m UserMultiError) Error() string + type UserServiceClient interface + CreateUser func(ctx context.Context, in *CreateUserInput, opts ...grpc.CallOption) (*User, error) + DeleteUser func(ctx context.Context, in *DeleteUserInput, opts ...grpc.CallOption) (*User, error) + DetailUser func(ctx context.Context, in *DetailUserInput, opts ...grpc.CallOption) (*User, error) + ListUser func(ctx context.Context, in *ListUserInput, opts ...grpc.CallOption) (*ListUserResponse, error) + UpdateUser func(ctx context.Context, in *UpdateUserInput, opts ...grpc.CallOption) (*User, error) + func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient + type UserServiceServer interface + CreateUser func(context.Context, *CreateUserInput) (*User, error) + DeleteUser func(context.Context, *DeleteUserInput) (*User, error) + DetailUser func(context.Context, *DetailUserInput) (*User, error) + ListUser func(context.Context, *ListUserInput) (*ListUserResponse, error) + UpdateUser func(context.Context, *UpdateUserInput) (*User, error) + type UserValidationError struct + func (e UserValidationError) Cause() error + func (e UserValidationError) Error() string + func (e UserValidationError) ErrorName() string + func (e UserValidationError) Field() string + func (e UserValidationError) Key() bool + func (e UserValidationError) Reason() string