Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserServicesServer(s grpc.ServiceRegistrar, srv UserServicesServer)
- type CreateUserRequest
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetData() *User
- func (x *CreateUserResponse) GetResponse() *RequestResponse
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- type FindUserRequest
- type FindUserResponse
- type RequestResponse
- func (*RequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RequestResponse) GetMessage() string
- func (x *RequestResponse) GetStatus() int32
- func (*RequestResponse) ProtoMessage()
- func (x *RequestResponse) ProtoReflect() protoreflect.Message
- func (x *RequestResponse) Reset()
- func (x *RequestResponse) String() string
- type UnimplementedUserServicesServer
- func (UnimplementedUserServicesServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
- func (UnimplementedUserServicesServer) FindUser(context.Context, *FindUserRequest) (*FindUserResponse, error)
- func (UnimplementedUserServicesServer) UpdateEmailVerifiedUser(context.Context, *User) (*emptypb.Empty, error)
- type UnsafeUserServicesServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetEmailVerifiedAt() *timestamppb.Timestamp
- func (x *User) GetId() string
- func (x *User) GetLangCode() string
- func (x *User) GetName() string
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServicesClient
- type UserServicesServer
Constants ¶
const ( UserServices_CreateUser_FullMethodName = "/user.UserServices/CreateUser" UserServices_FindUser_FullMethodName = "/user.UserServices/FindUser" UserServices_UpdateEmailVerifiedUser_FullMethodName = "/user.UserServices/UpdateEmailVerifiedUser" )
Variables ¶
var File_user_user_proto protoreflect.FileDescriptor
var UserServices_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserServices", HandlerType: (*UserServicesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserServices_CreateUser_Handler, }, { MethodName: "FindUser", Handler: _UserServices_FindUser_Handler, }, { MethodName: "UpdateEmailVerifiedUser", Handler: _UserServices_UpdateEmailVerifiedUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/user.proto", }
UserServices_ServiceDesc is the grpc.ServiceDesc for UserServices service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServicesServer ¶
func RegisterUserServicesServer(s grpc.ServiceRegistrar, srv UserServicesServer)
Types ¶
type CreateUserRequest ¶
type CreateUserRequest struct { Data *User `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetData ¶
func (x *CreateUserRequest) GetData() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { Data *User `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Response *RequestResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetData ¶
func (x *CreateUserResponse) GetData() *User
func (*CreateUserResponse) GetResponse ¶
func (x *CreateUserResponse) GetResponse() *RequestResponse
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type FindUserRequest ¶
type FindUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FindUserRequest) Descriptor
deprecated
func (*FindUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindUserRequest.ProtoReflect.Descriptor instead.
func (*FindUserRequest) GetId ¶
func (x *FindUserRequest) GetId() string
func (*FindUserRequest) ProtoMessage ¶
func (*FindUserRequest) ProtoMessage()
func (*FindUserRequest) ProtoReflect ¶
func (x *FindUserRequest) ProtoReflect() protoreflect.Message
func (*FindUserRequest) Reset ¶
func (x *FindUserRequest) Reset()
func (*FindUserRequest) String ¶
func (x *FindUserRequest) String() string
type FindUserResponse ¶
type FindUserResponse struct { Data *User `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FindUserResponse) Descriptor
deprecated
func (*FindUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindUserResponse.ProtoReflect.Descriptor instead.
func (*FindUserResponse) GetData ¶
func (x *FindUserResponse) GetData() *User
func (*FindUserResponse) ProtoMessage ¶
func (*FindUserResponse) ProtoMessage()
func (*FindUserResponse) ProtoReflect ¶
func (x *FindUserResponse) ProtoReflect() protoreflect.Message
func (*FindUserResponse) Reset ¶
func (x *FindUserResponse) Reset()
func (*FindUserResponse) String ¶
func (x *FindUserResponse) String() string
type RequestResponse ¶
type RequestResponse struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RequestResponse) Descriptor
deprecated
func (*RequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use RequestResponse.ProtoReflect.Descriptor instead.
func (*RequestResponse) GetMessage ¶
func (x *RequestResponse) GetMessage() string
func (*RequestResponse) GetStatus ¶
func (x *RequestResponse) GetStatus() int32
func (*RequestResponse) ProtoMessage ¶
func (*RequestResponse) ProtoMessage()
func (*RequestResponse) ProtoReflect ¶
func (x *RequestResponse) ProtoReflect() protoreflect.Message
func (*RequestResponse) Reset ¶
func (x *RequestResponse) Reset()
func (*RequestResponse) String ¶
func (x *RequestResponse) String() string
type UnimplementedUserServicesServer ¶
type UnimplementedUserServicesServer struct{}
UnimplementedUserServicesServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedUserServicesServer) CreateUser ¶
func (UnimplementedUserServicesServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
func (UnimplementedUserServicesServer) FindUser ¶
func (UnimplementedUserServicesServer) FindUser(context.Context, *FindUserRequest) (*FindUserResponse, error)
func (UnimplementedUserServicesServer) UpdateEmailVerifiedUser ¶
type UnsafeUserServicesServer ¶
type UnsafeUserServicesServer interface {
// contains filtered or unexported methods
}
UnsafeUserServicesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServicesServer will result in compilation errors.
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` LangCode string `protobuf:"bytes,7,opt,name=lang_code,json=langCode,proto3" json:"lang_code,omitempty"` EmailVerifiedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=email_verified_at,json=emailVerifiedAt,proto3" json:"email_verified_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetEmailVerifiedAt ¶
func (x *User) GetEmailVerifiedAt() *timestamppb.Timestamp
func (*User) GetLangCode ¶
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServicesClient ¶
type UserServicesClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) FindUser(ctx context.Context, in *FindUserRequest, opts ...grpc.CallOption) (*FindUserResponse, error) UpdateEmailVerifiedUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserServicesClient is the client API for UserServices 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 NewUserServicesClient ¶
func NewUserServicesClient(cc grpc.ClientConnInterface) UserServicesClient
type UserServicesServer ¶
type UserServicesServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) FindUser(context.Context, *FindUserRequest) (*FindUserResponse, error) UpdateEmailVerifiedUser(context.Context, *User) (*emptypb.Empty, error) }
UserServicesServer is the server API for UserServices service. All implementations should embed UnimplementedUserServicesServer for forward compatibility.