Documentation
¶
Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type FindByCredentialRequest
- func (*FindByCredentialRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindByCredentialRequest) GetEmail() string
- func (x *FindByCredentialRequest) GetPassword() string
- func (*FindByCredentialRequest) ProtoMessage()
- func (x *FindByCredentialRequest) ProtoReflect() protoreflect.Message
- func (x *FindByCredentialRequest) Reset()
- func (x *FindByCredentialRequest) String() string
- type FindByCredentialResponse
- func (*FindByCredentialResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindByCredentialResponse) GetData() *FindByCredentialResponseData
- func (x *FindByCredentialResponse) GetMessage() string
- func (*FindByCredentialResponse) ProtoMessage()
- func (x *FindByCredentialResponse) ProtoReflect() protoreflect.Message
- func (x *FindByCredentialResponse) Reset()
- func (x *FindByCredentialResponse) String() string
- type FindByCredentialResponseData
- func (*FindByCredentialResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *FindByCredentialResponseData) GetUser() *User
- func (*FindByCredentialResponseData) ProtoMessage()
- func (x *FindByCredentialResponseData) ProtoReflect() protoreflect.Message
- func (x *FindByCredentialResponseData) Reset()
- func (x *FindByCredentialResponseData) String() string
- type FindByIdRequest
- type FindByIdResponse
- func (*FindByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindByIdResponse) GetData() *FindByIdResponseData
- func (x *FindByIdResponse) GetMessage() string
- func (*FindByIdResponse) ProtoMessage()
- func (x *FindByIdResponse) ProtoReflect() protoreflect.Message
- func (x *FindByIdResponse) Reset()
- func (x *FindByIdResponse) String() string
- type FindByIdResponseData
- func (*FindByIdResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *FindByIdResponseData) GetUser() *User
- func (*FindByIdResponseData) ProtoMessage()
- func (x *FindByIdResponseData) ProtoReflect() protoreflect.Message
- func (x *FindByIdResponseData) Reset()
- func (x *FindByIdResponseData) String() string
- type StoreRequest
- func (*StoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StoreRequest) GetEmail() string
- func (x *StoreRequest) GetName() string
- func (x *StoreRequest) GetPassword() string
- func (*StoreRequest) ProtoMessage()
- func (x *StoreRequest) ProtoReflect() protoreflect.Message
- func (x *StoreRequest) Reset()
- func (x *StoreRequest) String() string
- type StoreResponse
- func (*StoreResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StoreResponse) GetData() *StoreResponseData
- func (x *StoreResponse) GetMessage() string
- func (*StoreResponse) ProtoMessage()
- func (x *StoreResponse) ProtoReflect() protoreflect.Message
- func (x *StoreResponse) Reset()
- func (x *StoreResponse) String() string
- type StoreResponseData
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) FindByCredential(context.Context, *FindByCredentialRequest) (*FindByCredentialResponse, error)
- func (UnimplementedUserServiceServer) FindById(context.Context, *FindByIdRequest) (*FindByIdResponse, error)
- func (UnimplementedUserServiceServer) Store(context.Context, *StoreRequest) (*StoreResponse, error)
- type UnsafeUserServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreatedAt() string
- func (x *User) GetEmail() string
- func (x *User) GetId() int32
- func (x *User) GetImage() string
- func (x *User) GetName() string
- func (x *User) GetUpdatedAt() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_internal_proto_user_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindById", Handler: _UserService_FindById_Handler, }, { MethodName: "FindByCredential", Handler: _UserService_FindByCredential_Handler, }, { MethodName: "Store", Handler: _UserService_Store_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/proto/user/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type FindByCredentialRequest ¶
type FindByCredentialRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*FindByCredentialRequest) Descriptor
deprecated
func (*FindByCredentialRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindByCredentialRequest.ProtoReflect.Descriptor instead.
func (*FindByCredentialRequest) GetEmail ¶
func (x *FindByCredentialRequest) GetEmail() string
func (*FindByCredentialRequest) GetPassword ¶
func (x *FindByCredentialRequest) GetPassword() string
func (*FindByCredentialRequest) ProtoMessage ¶
func (*FindByCredentialRequest) ProtoMessage()
func (*FindByCredentialRequest) ProtoReflect ¶
func (x *FindByCredentialRequest) ProtoReflect() protoreflect.Message
func (*FindByCredentialRequest) Reset ¶
func (x *FindByCredentialRequest) Reset()
func (*FindByCredentialRequest) String ¶
func (x *FindByCredentialRequest) String() string
type FindByCredentialResponse ¶
type FindByCredentialResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Data *FindByCredentialResponseData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FindByCredentialResponse) Descriptor
deprecated
func (*FindByCredentialResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindByCredentialResponse.ProtoReflect.Descriptor instead.
func (*FindByCredentialResponse) GetData ¶
func (x *FindByCredentialResponse) GetData() *FindByCredentialResponseData
func (*FindByCredentialResponse) GetMessage ¶
func (x *FindByCredentialResponse) GetMessage() string
func (*FindByCredentialResponse) ProtoMessage ¶
func (*FindByCredentialResponse) ProtoMessage()
func (*FindByCredentialResponse) ProtoReflect ¶
func (x *FindByCredentialResponse) ProtoReflect() protoreflect.Message
func (*FindByCredentialResponse) Reset ¶
func (x *FindByCredentialResponse) Reset()
func (*FindByCredentialResponse) String ¶
func (x *FindByCredentialResponse) String() string
type FindByCredentialResponseData ¶
type FindByCredentialResponseData struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*FindByCredentialResponseData) Descriptor
deprecated
func (*FindByCredentialResponseData) Descriptor() ([]byte, []int)
Deprecated: Use FindByCredentialResponseData.ProtoReflect.Descriptor instead.
func (*FindByCredentialResponseData) GetUser ¶
func (x *FindByCredentialResponseData) GetUser() *User
func (*FindByCredentialResponseData) ProtoMessage ¶
func (*FindByCredentialResponseData) ProtoMessage()
func (*FindByCredentialResponseData) ProtoReflect ¶
func (x *FindByCredentialResponseData) ProtoReflect() protoreflect.Message
func (*FindByCredentialResponseData) Reset ¶
func (x *FindByCredentialResponseData) Reset()
func (*FindByCredentialResponseData) String ¶
func (x *FindByCredentialResponseData) String() string
type FindByIdRequest ¶
type FindByIdRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FindByIdRequest) Descriptor
deprecated
func (*FindByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindByIdRequest.ProtoReflect.Descriptor instead.
func (*FindByIdRequest) GetId ¶
func (x *FindByIdRequest) GetId() int32
func (*FindByIdRequest) ProtoMessage ¶
func (*FindByIdRequest) ProtoMessage()
func (*FindByIdRequest) ProtoReflect ¶
func (x *FindByIdRequest) ProtoReflect() protoreflect.Message
func (*FindByIdRequest) Reset ¶
func (x *FindByIdRequest) Reset()
func (*FindByIdRequest) String ¶
func (x *FindByIdRequest) String() string
type FindByIdResponse ¶
type FindByIdResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Data *FindByIdResponseData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FindByIdResponse) Descriptor
deprecated
func (*FindByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindByIdResponse.ProtoReflect.Descriptor instead.
func (*FindByIdResponse) GetData ¶
func (x *FindByIdResponse) GetData() *FindByIdResponseData
func (*FindByIdResponse) GetMessage ¶
func (x *FindByIdResponse) GetMessage() string
func (*FindByIdResponse) ProtoMessage ¶
func (*FindByIdResponse) ProtoMessage()
func (*FindByIdResponse) ProtoReflect ¶
func (x *FindByIdResponse) ProtoReflect() protoreflect.Message
func (*FindByIdResponse) Reset ¶
func (x *FindByIdResponse) Reset()
func (*FindByIdResponse) String ¶
func (x *FindByIdResponse) String() string
type FindByIdResponseData ¶
type FindByIdResponseData struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*FindByIdResponseData) Descriptor
deprecated
func (*FindByIdResponseData) Descriptor() ([]byte, []int)
Deprecated: Use FindByIdResponseData.ProtoReflect.Descriptor instead.
func (*FindByIdResponseData) GetUser ¶
func (x *FindByIdResponseData) GetUser() *User
func (*FindByIdResponseData) ProtoMessage ¶
func (*FindByIdResponseData) ProtoMessage()
func (*FindByIdResponseData) ProtoReflect ¶
func (x *FindByIdResponseData) ProtoReflect() protoreflect.Message
func (*FindByIdResponseData) Reset ¶
func (x *FindByIdResponseData) Reset()
func (*FindByIdResponseData) String ¶
func (x *FindByIdResponseData) String() string
type StoreRequest ¶
type StoreRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*StoreRequest) Descriptor
deprecated
func (*StoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use StoreRequest.ProtoReflect.Descriptor instead.
func (*StoreRequest) GetEmail ¶
func (x *StoreRequest) GetEmail() string
func (*StoreRequest) GetName ¶
func (x *StoreRequest) GetName() string
func (*StoreRequest) GetPassword ¶
func (x *StoreRequest) GetPassword() string
func (*StoreRequest) ProtoMessage ¶
func (*StoreRequest) ProtoMessage()
func (*StoreRequest) ProtoReflect ¶
func (x *StoreRequest) ProtoReflect() protoreflect.Message
func (*StoreRequest) Reset ¶
func (x *StoreRequest) Reset()
func (*StoreRequest) String ¶
func (x *StoreRequest) String() string
type StoreResponse ¶
type StoreResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Data *StoreResponseData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*StoreResponse) Descriptor
deprecated
func (*StoreResponse) Descriptor() ([]byte, []int)
Deprecated: Use StoreResponse.ProtoReflect.Descriptor instead.
func (*StoreResponse) GetData ¶
func (x *StoreResponse) GetData() *StoreResponseData
func (*StoreResponse) GetMessage ¶
func (x *StoreResponse) GetMessage() string
func (*StoreResponse) ProtoMessage ¶
func (*StoreResponse) ProtoMessage()
func (*StoreResponse) ProtoReflect ¶
func (x *StoreResponse) ProtoReflect() protoreflect.Message
func (*StoreResponse) Reset ¶
func (x *StoreResponse) Reset()
func (*StoreResponse) String ¶
func (x *StoreResponse) String() string
type StoreResponseData ¶
type StoreResponseData struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*StoreResponseData) Descriptor
deprecated
func (*StoreResponseData) Descriptor() ([]byte, []int)
Deprecated: Use StoreResponseData.ProtoReflect.Descriptor instead.
func (*StoreResponseData) GetUser ¶
func (x *StoreResponseData) GetUser() *User
func (*StoreResponseData) ProtoMessage ¶
func (*StoreResponseData) ProtoMessage()
func (*StoreResponseData) ProtoReflect ¶
func (x *StoreResponseData) ProtoReflect() protoreflect.Message
func (*StoreResponseData) Reset ¶
func (x *StoreResponseData) Reset()
func (*StoreResponseData) String ¶
func (x *StoreResponseData) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) FindByCredential ¶
func (UnimplementedUserServiceServer) FindByCredential(context.Context, *FindByCredentialRequest) (*FindByCredentialResponse, error)
func (UnimplementedUserServiceServer) FindById ¶
func (UnimplementedUserServiceServer) FindById(context.Context, *FindByIdRequest) (*FindByIdResponse, error)
func (UnimplementedUserServiceServer) Store ¶
func (UnimplementedUserServiceServer) Store(context.Context, *StoreRequest) (*StoreResponse, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type User ¶
type User struct { Id int32 `protobuf:"varint,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"` Image *string `protobuf:"bytes,4,opt,name=image,proto3,oneof" json:"image,omitempty"` CreatedAt *string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (*User) GetUpdatedAt ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { FindById(ctx context.Context, in *FindByIdRequest, opts ...grpc.CallOption) (*FindByIdResponse, error) FindByCredential(ctx context.Context, in *FindByCredentialRequest, opts ...grpc.CallOption) (*FindByCredentialResponse, error) Store(ctx context.Context, in *StoreRequest, opts ...grpc.CallOption) (*StoreResponse, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { FindById(context.Context, *FindByIdRequest) (*FindByIdResponse, error) FindByCredential(context.Context, *FindByCredentialRequest) (*FindByCredentialResponse, error) Store(context.Context, *StoreRequest) (*StoreResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility