Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterProfileServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProfileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileServiceClient) error
- func RegisterProfileServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProfileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServiceServer) error
- func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)
- type CreateProfileRequest
- func (*CreateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProfileRequest) GetAddress() string
- func (x *CreateProfileRequest) GetDateOfBirth() string
- func (x *CreateProfileRequest) GetEmail() string
- func (x *CreateProfileRequest) GetId() string
- func (x *CreateProfileRequest) GetLegalName() string
- func (x *CreateProfileRequest) GetName() string
- func (x *CreateProfileRequest) GetUserName() string
- func (*CreateProfileRequest) ProtoMessage()
- func (x *CreateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProfileRequest) Reset()
- func (x *CreateProfileRequest) String() string
- func (m *CreateProfileRequest) Validate() error
- func (m *CreateProfileRequest) ValidateAll() error
- type CreateProfileRequestMultiError
- type CreateProfileRequestValidationError
- func (e CreateProfileRequestValidationError) Cause() error
- func (e CreateProfileRequestValidationError) Error() string
- func (e CreateProfileRequestValidationError) ErrorName() string
- func (e CreateProfileRequestValidationError) Field() string
- func (e CreateProfileRequestValidationError) Key() bool
- func (e CreateProfileRequestValidationError) Reason() string
- type CreateProfileResponse
- func (*CreateProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProfileResponse) GetAddress() string
- func (x *CreateProfileResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *CreateProfileResponse) GetDateOfBirth() string
- func (x *CreateProfileResponse) GetEmail() string
- func (x *CreateProfileResponse) GetLegalName() string
- func (x *CreateProfileResponse) GetName() string
- func (x *CreateProfileResponse) GetRoles() []string
- func (x *CreateProfileResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (x *CreateProfileResponse) GetUserId() string
- func (x *CreateProfileResponse) GetUserName() string
- func (*CreateProfileResponse) ProtoMessage()
- func (x *CreateProfileResponse) ProtoReflect() protoreflect.Message
- func (x *CreateProfileResponse) Reset()
- func (x *CreateProfileResponse) String() string
- func (m *CreateProfileResponse) Validate() error
- func (m *CreateProfileResponse) ValidateAll() error
- type CreateProfileResponseMultiError
- type CreateProfileResponseValidationError
- func (e CreateProfileResponseValidationError) Cause() error
- func (e CreateProfileResponseValidationError) Error() string
- func (e CreateProfileResponseValidationError) ErrorName() string
- func (e CreateProfileResponseValidationError) Field() string
- func (e CreateProfileResponseValidationError) Key() bool
- func (e CreateProfileResponseValidationError) Reason() string
- type ProfileServiceClient
- type ProfileServiceServer
- type ReadProfileRequest
- func (*ReadProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadProfileRequest) GetId() string
- func (*ReadProfileRequest) ProtoMessage()
- func (x *ReadProfileRequest) ProtoReflect() protoreflect.Message
- func (x *ReadProfileRequest) Reset()
- func (x *ReadProfileRequest) String() string
- func (m *ReadProfileRequest) Validate() error
- func (m *ReadProfileRequest) ValidateAll() error
- type ReadProfileRequestMultiError
- type ReadProfileRequestValidationError
- func (e ReadProfileRequestValidationError) Cause() error
- func (e ReadProfileRequestValidationError) Error() string
- func (e ReadProfileRequestValidationError) ErrorName() string
- func (e ReadProfileRequestValidationError) Field() string
- func (e ReadProfileRequestValidationError) Key() bool
- func (e ReadProfileRequestValidationError) Reason() string
- type ReadProfileResponse
- func (*ReadProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadProfileResponse) GetAddress() string
- func (x *ReadProfileResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *ReadProfileResponse) GetDateOfBirth() string
- func (x *ReadProfileResponse) GetEmail() string
- func (x *ReadProfileResponse) GetLegalName() string
- func (x *ReadProfileResponse) GetName() string
- func (x *ReadProfileResponse) GetRoles() []string
- func (x *ReadProfileResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (x *ReadProfileResponse) GetUserId() string
- func (x *ReadProfileResponse) GetUserName() string
- func (*ReadProfileResponse) ProtoMessage()
- func (x *ReadProfileResponse) ProtoReflect() protoreflect.Message
- func (x *ReadProfileResponse) Reset()
- func (x *ReadProfileResponse) String() string
- func (m *ReadProfileResponse) Validate() error
- func (m *ReadProfileResponse) ValidateAll() error
- type ReadProfileResponseMultiError
- type ReadProfileResponseValidationError
- func (e ReadProfileResponseValidationError) Cause() error
- func (e ReadProfileResponseValidationError) Error() string
- func (e ReadProfileResponseValidationError) ErrorName() string
- func (e ReadProfileResponseValidationError) Field() string
- func (e ReadProfileResponseValidationError) Key() bool
- func (e ReadProfileResponseValidationError) Reason() string
- type UnimplementedProfileServiceServer
- func (UnimplementedProfileServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
- func (UnimplementedProfileServiceServer) ReadProfile(context.Context, *ReadProfileRequest) (*ReadProfileResponse, error)
- func (UnimplementedProfileServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
- type UnsafeProfileServiceServer
- type UpdateProfileRequest
- func (*UpdateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileRequest) GetAddress() string
- func (x *UpdateProfileRequest) GetDateOfBirth() string
- func (x *UpdateProfileRequest) GetEmail() string
- func (x *UpdateProfileRequest) GetId() string
- func (x *UpdateProfileRequest) GetLegalName() string
- func (x *UpdateProfileRequest) GetName() string
- func (x *UpdateProfileRequest) GetUserName() string
- func (*UpdateProfileRequest) ProtoMessage()
- func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileRequest) Reset()
- func (x *UpdateProfileRequest) String() string
- func (m *UpdateProfileRequest) Validate() error
- func (m *UpdateProfileRequest) ValidateAll() error
- type UpdateProfileRequestMultiError
- type UpdateProfileRequestValidationError
- func (e UpdateProfileRequestValidationError) Cause() error
- func (e UpdateProfileRequestValidationError) Error() string
- func (e UpdateProfileRequestValidationError) ErrorName() string
- func (e UpdateProfileRequestValidationError) Field() string
- func (e UpdateProfileRequestValidationError) Key() bool
- func (e UpdateProfileRequestValidationError) Reason() string
- type UpdateProfileResponse
- func (*UpdateProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileResponse) GetAddress() string
- func (x *UpdateProfileResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *UpdateProfileResponse) GetDateOfBirth() string
- func (x *UpdateProfileResponse) GetEmail() string
- func (x *UpdateProfileResponse) GetLegalName() string
- func (x *UpdateProfileResponse) GetName() string
- func (x *UpdateProfileResponse) GetRoles() []string
- func (x *UpdateProfileResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (x *UpdateProfileResponse) GetUserId() string
- func (x *UpdateProfileResponse) GetUserName() string
- func (*UpdateProfileResponse) ProtoMessage()
- func (x *UpdateProfileResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileResponse) Reset()
- func (x *UpdateProfileResponse) String() string
- func (m *UpdateProfileResponse) Validate() error
- func (m *UpdateProfileResponse) ValidateAll() error
- type UpdateProfileResponseMultiError
- type UpdateProfileResponseValidationError
- func (e UpdateProfileResponseValidationError) Cause() error
- func (e UpdateProfileResponseValidationError) Error() string
- func (e UpdateProfileResponseValidationError) ErrorName() string
- func (e UpdateProfileResponseValidationError) Field() string
- func (e UpdateProfileResponseValidationError) Key() bool
- func (e UpdateProfileResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_pkg_pbs_profile_v1_profile_proto protoreflect.FileDescriptor
var ProfileService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pkg.pbs.profile.v1.ProfileService", HandlerType: (*ProfileServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReadProfile", Handler: _ProfileService_ReadProfile_Handler, }, { MethodName: "UpdateProfile", Handler: _ProfileService_UpdateProfile_Handler, }, { MethodName: "CreateProfile", Handler: _ProfileService_CreateProfile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/pbs/profile/v1/profile.proto", }
ProfileService_ServiceDesc is the grpc.ServiceDesc for ProfileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProfileServiceHandler ¶
func RegisterProfileServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProfileServiceHandler registers the http handlers for service ProfileService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProfileServiceHandlerClient ¶
func RegisterProfileServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileServiceClient) error
RegisterProfileServiceHandlerClient registers the http handlers for service ProfileService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfileServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfileServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfileServiceClient" to call the correct interceptors.
func RegisterProfileServiceHandlerFromEndpoint ¶
func RegisterProfileServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProfileServiceHandlerFromEndpoint is same as RegisterProfileServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProfileServiceHandlerServer ¶
func RegisterProfileServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServiceServer) error
RegisterProfileServiceHandlerServer registers the http handlers for service ProfileService to "mux". UnaryRPC :call ProfileServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProfileServiceHandlerFromEndpoint instead.
func RegisterProfileServiceServer ¶
func RegisterProfileServiceServer(s grpc.ServiceRegistrar, srv ProfileServiceServer)
Types ¶
type CreateProfileRequest ¶
type CreateProfileRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` LegalName string `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"` UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` DateOfBirth string `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` // contains filtered or unexported fields }
func (*CreateProfileRequest) Descriptor
deprecated
func (*CreateProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProfileRequest.ProtoReflect.Descriptor instead.
func (*CreateProfileRequest) GetAddress ¶
func (x *CreateProfileRequest) GetAddress() string
func (*CreateProfileRequest) GetDateOfBirth ¶
func (x *CreateProfileRequest) GetDateOfBirth() string
func (*CreateProfileRequest) GetEmail ¶
func (x *CreateProfileRequest) GetEmail() string
func (*CreateProfileRequest) GetId ¶
func (x *CreateProfileRequest) GetId() string
func (*CreateProfileRequest) GetLegalName ¶
func (x *CreateProfileRequest) GetLegalName() string
func (*CreateProfileRequest) GetName ¶
func (x *CreateProfileRequest) GetName() string
func (*CreateProfileRequest) GetUserName ¶
func (x *CreateProfileRequest) GetUserName() string
func (*CreateProfileRequest) ProtoMessage ¶
func (*CreateProfileRequest) ProtoMessage()
func (*CreateProfileRequest) ProtoReflect ¶
func (x *CreateProfileRequest) ProtoReflect() protoreflect.Message
func (*CreateProfileRequest) Reset ¶
func (x *CreateProfileRequest) Reset()
func (*CreateProfileRequest) String ¶
func (x *CreateProfileRequest) String() string
func (*CreateProfileRequest) Validate ¶
func (m *CreateProfileRequest) Validate() error
Validate checks the field values on CreateProfileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateProfileRequest) ValidateAll ¶
func (m *CreateProfileRequest) ValidateAll() error
ValidateAll checks the field values on CreateProfileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateProfileRequestMultiError, or nil if none found.
type CreateProfileRequestMultiError ¶
type CreateProfileRequestMultiError []error
CreateProfileRequestMultiError is an error wrapping multiple validation errors returned by CreateProfileRequest.ValidateAll() if the designated constraints aren't met.
func (CreateProfileRequestMultiError) AllErrors ¶
func (m CreateProfileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateProfileRequestMultiError) Error ¶
func (m CreateProfileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateProfileRequestValidationError ¶
type CreateProfileRequestValidationError struct {
// contains filtered or unexported fields
}
CreateProfileRequestValidationError is the validation error returned by CreateProfileRequest.Validate if the designated constraints aren't met.
func (CreateProfileRequestValidationError) Cause ¶
func (e CreateProfileRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateProfileRequestValidationError) Error ¶
func (e CreateProfileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateProfileRequestValidationError) ErrorName ¶
func (e CreateProfileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateProfileRequestValidationError) Field ¶
func (e CreateProfileRequestValidationError) Field() string
Field function returns field value.
func (CreateProfileRequestValidationError) Key ¶
func (e CreateProfileRequestValidationError) Key() bool
Key function returns key value.
func (CreateProfileRequestValidationError) Reason ¶
func (e CreateProfileRequestValidationError) Reason() string
Reason function returns reason value.
type CreateProfileResponse ¶
type CreateProfileResponse struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` LegalName string `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"` UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` DateOfBirth string `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*CreateProfileResponse) Descriptor
deprecated
func (*CreateProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateProfileResponse.ProtoReflect.Descriptor instead.
func (*CreateProfileResponse) GetAddress ¶
func (x *CreateProfileResponse) GetAddress() string
func (*CreateProfileResponse) GetCreatedAt ¶
func (x *CreateProfileResponse) GetCreatedAt() *timestamppb.Timestamp
func (*CreateProfileResponse) GetDateOfBirth ¶
func (x *CreateProfileResponse) GetDateOfBirth() string
func (*CreateProfileResponse) GetEmail ¶
func (x *CreateProfileResponse) GetEmail() string
func (*CreateProfileResponse) GetLegalName ¶
func (x *CreateProfileResponse) GetLegalName() string
func (*CreateProfileResponse) GetName ¶
func (x *CreateProfileResponse) GetName() string
func (*CreateProfileResponse) GetRoles ¶
func (x *CreateProfileResponse) GetRoles() []string
func (*CreateProfileResponse) GetUpdatedAt ¶
func (x *CreateProfileResponse) GetUpdatedAt() *timestamppb.Timestamp
func (*CreateProfileResponse) GetUserId ¶
func (x *CreateProfileResponse) GetUserId() string
func (*CreateProfileResponse) GetUserName ¶
func (x *CreateProfileResponse) GetUserName() string
func (*CreateProfileResponse) ProtoMessage ¶
func (*CreateProfileResponse) ProtoMessage()
func (*CreateProfileResponse) ProtoReflect ¶
func (x *CreateProfileResponse) ProtoReflect() protoreflect.Message
func (*CreateProfileResponse) Reset ¶
func (x *CreateProfileResponse) Reset()
func (*CreateProfileResponse) String ¶
func (x *CreateProfileResponse) String() string
func (*CreateProfileResponse) Validate ¶
func (m *CreateProfileResponse) Validate() error
Validate checks the field values on CreateProfileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateProfileResponse) ValidateAll ¶
func (m *CreateProfileResponse) ValidateAll() error
ValidateAll checks the field values on CreateProfileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateProfileResponseMultiError, or nil if none found.
type CreateProfileResponseMultiError ¶
type CreateProfileResponseMultiError []error
CreateProfileResponseMultiError is an error wrapping multiple validation errors returned by CreateProfileResponse.ValidateAll() if the designated constraints aren't met.
func (CreateProfileResponseMultiError) AllErrors ¶
func (m CreateProfileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateProfileResponseMultiError) Error ¶
func (m CreateProfileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateProfileResponseValidationError ¶
type CreateProfileResponseValidationError struct {
// contains filtered or unexported fields
}
CreateProfileResponseValidationError is the validation error returned by CreateProfileResponse.Validate if the designated constraints aren't met.
func (CreateProfileResponseValidationError) Cause ¶
func (e CreateProfileResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateProfileResponseValidationError) Error ¶
func (e CreateProfileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateProfileResponseValidationError) ErrorName ¶
func (e CreateProfileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateProfileResponseValidationError) Field ¶
func (e CreateProfileResponseValidationError) Field() string
Field function returns field value.
func (CreateProfileResponseValidationError) Key ¶
func (e CreateProfileResponseValidationError) Key() bool
Key function returns key value.
func (CreateProfileResponseValidationError) Reason ¶
func (e CreateProfileResponseValidationError) Reason() string
Reason function returns reason value.
type ProfileServiceClient ¶
type ProfileServiceClient interface { ReadProfile(ctx context.Context, in *ReadProfileRequest, opts ...grpc.CallOption) (*ReadProfileResponse, error) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*UpdateProfileResponse, error) CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*CreateProfileResponse, error) }
ProfileServiceClient is the client API for ProfileService 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 NewProfileServiceClient ¶
func NewProfileServiceClient(cc grpc.ClientConnInterface) ProfileServiceClient
type ProfileServiceServer ¶
type ProfileServiceServer interface { ReadProfile(context.Context, *ReadProfileRequest) (*ReadProfileResponse, error) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error) CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error) // contains filtered or unexported methods }
ProfileServiceServer is the server API for ProfileService service. All implementations must embed UnimplementedProfileServiceServer for forward compatibility
type ReadProfileRequest ¶
type ReadProfileRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ReadProfileRequest) Descriptor
deprecated
func (*ReadProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadProfileRequest.ProtoReflect.Descriptor instead.
func (*ReadProfileRequest) GetId ¶
func (x *ReadProfileRequest) GetId() string
func (*ReadProfileRequest) ProtoMessage ¶
func (*ReadProfileRequest) ProtoMessage()
func (*ReadProfileRequest) ProtoReflect ¶
func (x *ReadProfileRequest) ProtoReflect() protoreflect.Message
func (*ReadProfileRequest) Reset ¶
func (x *ReadProfileRequest) Reset()
func (*ReadProfileRequest) String ¶
func (x *ReadProfileRequest) String() string
func (*ReadProfileRequest) Validate ¶
func (m *ReadProfileRequest) Validate() error
Validate checks the field values on ReadProfileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ReadProfileRequest) ValidateAll ¶
func (m *ReadProfileRequest) ValidateAll() error
ValidateAll checks the field values on ReadProfileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadProfileRequestMultiError, or nil if none found.
type ReadProfileRequestMultiError ¶
type ReadProfileRequestMultiError []error
ReadProfileRequestMultiError is an error wrapping multiple validation errors returned by ReadProfileRequest.ValidateAll() if the designated constraints aren't met.
func (ReadProfileRequestMultiError) AllErrors ¶
func (m ReadProfileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadProfileRequestMultiError) Error ¶
func (m ReadProfileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadProfileRequestValidationError ¶
type ReadProfileRequestValidationError struct {
// contains filtered or unexported fields
}
ReadProfileRequestValidationError is the validation error returned by ReadProfileRequest.Validate if the designated constraints aren't met.
func (ReadProfileRequestValidationError) Cause ¶
func (e ReadProfileRequestValidationError) Cause() error
Cause function returns cause value.
func (ReadProfileRequestValidationError) Error ¶
func (e ReadProfileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReadProfileRequestValidationError) ErrorName ¶
func (e ReadProfileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReadProfileRequestValidationError) Field ¶
func (e ReadProfileRequestValidationError) Field() string
Field function returns field value.
func (ReadProfileRequestValidationError) Key ¶
func (e ReadProfileRequestValidationError) Key() bool
Key function returns key value.
func (ReadProfileRequestValidationError) Reason ¶
func (e ReadProfileRequestValidationError) Reason() string
Reason function returns reason value.
type ReadProfileResponse ¶
type ReadProfileResponse struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` LegalName string `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"` UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` DateOfBirth string `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*ReadProfileResponse) Descriptor
deprecated
func (*ReadProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadProfileResponse.ProtoReflect.Descriptor instead.
func (*ReadProfileResponse) GetAddress ¶
func (x *ReadProfileResponse) GetAddress() string
func (*ReadProfileResponse) GetCreatedAt ¶
func (x *ReadProfileResponse) GetCreatedAt() *timestamppb.Timestamp
func (*ReadProfileResponse) GetDateOfBirth ¶
func (x *ReadProfileResponse) GetDateOfBirth() string
func (*ReadProfileResponse) GetEmail ¶
func (x *ReadProfileResponse) GetEmail() string
func (*ReadProfileResponse) GetLegalName ¶
func (x *ReadProfileResponse) GetLegalName() string
func (*ReadProfileResponse) GetName ¶
func (x *ReadProfileResponse) GetName() string
func (*ReadProfileResponse) GetRoles ¶
func (x *ReadProfileResponse) GetRoles() []string
func (*ReadProfileResponse) GetUpdatedAt ¶
func (x *ReadProfileResponse) GetUpdatedAt() *timestamppb.Timestamp
func (*ReadProfileResponse) GetUserId ¶
func (x *ReadProfileResponse) GetUserId() string
func (*ReadProfileResponse) GetUserName ¶
func (x *ReadProfileResponse) GetUserName() string
func (*ReadProfileResponse) ProtoMessage ¶
func (*ReadProfileResponse) ProtoMessage()
func (*ReadProfileResponse) ProtoReflect ¶
func (x *ReadProfileResponse) ProtoReflect() protoreflect.Message
func (*ReadProfileResponse) Reset ¶
func (x *ReadProfileResponse) Reset()
func (*ReadProfileResponse) String ¶
func (x *ReadProfileResponse) String() string
func (*ReadProfileResponse) Validate ¶
func (m *ReadProfileResponse) Validate() error
Validate checks the field values on ReadProfileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ReadProfileResponse) ValidateAll ¶
func (m *ReadProfileResponse) ValidateAll() error
ValidateAll checks the field values on ReadProfileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReadProfileResponseMultiError, or nil if none found.
type ReadProfileResponseMultiError ¶
type ReadProfileResponseMultiError []error
ReadProfileResponseMultiError is an error wrapping multiple validation errors returned by ReadProfileResponse.ValidateAll() if the designated constraints aren't met.
func (ReadProfileResponseMultiError) AllErrors ¶
func (m ReadProfileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadProfileResponseMultiError) Error ¶
func (m ReadProfileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadProfileResponseValidationError ¶
type ReadProfileResponseValidationError struct {
// contains filtered or unexported fields
}
ReadProfileResponseValidationError is the validation error returned by ReadProfileResponse.Validate if the designated constraints aren't met.
func (ReadProfileResponseValidationError) Cause ¶
func (e ReadProfileResponseValidationError) Cause() error
Cause function returns cause value.
func (ReadProfileResponseValidationError) Error ¶
func (e ReadProfileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReadProfileResponseValidationError) ErrorName ¶
func (e ReadProfileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReadProfileResponseValidationError) Field ¶
func (e ReadProfileResponseValidationError) Field() string
Field function returns field value.
func (ReadProfileResponseValidationError) Key ¶
func (e ReadProfileResponseValidationError) Key() bool
Key function returns key value.
func (ReadProfileResponseValidationError) Reason ¶
func (e ReadProfileResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedProfileServiceServer ¶
type UnimplementedProfileServiceServer struct { }
UnimplementedProfileServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProfileServiceServer) CreateProfile ¶
func (UnimplementedProfileServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
func (UnimplementedProfileServiceServer) ReadProfile ¶
func (UnimplementedProfileServiceServer) ReadProfile(context.Context, *ReadProfileRequest) (*ReadProfileResponse, error)
func (UnimplementedProfileServiceServer) UpdateProfile ¶
func (UnimplementedProfileServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
type UnsafeProfileServiceServer ¶
type UnsafeProfileServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProfileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServiceServer will result in compilation errors.
type UpdateProfileRequest ¶
type UpdateProfileRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` LegalName string `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"` UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` DateOfBirth string `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` // contains filtered or unexported fields }
func (*UpdateProfileRequest) Descriptor
deprecated
func (*UpdateProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.
func (*UpdateProfileRequest) GetAddress ¶
func (x *UpdateProfileRequest) GetAddress() string
func (*UpdateProfileRequest) GetDateOfBirth ¶
func (x *UpdateProfileRequest) GetDateOfBirth() string
func (*UpdateProfileRequest) GetEmail ¶
func (x *UpdateProfileRequest) GetEmail() string
func (*UpdateProfileRequest) GetId ¶
func (x *UpdateProfileRequest) GetId() string
func (*UpdateProfileRequest) GetLegalName ¶
func (x *UpdateProfileRequest) GetLegalName() string
func (*UpdateProfileRequest) GetName ¶
func (x *UpdateProfileRequest) GetName() string
func (*UpdateProfileRequest) GetUserName ¶
func (x *UpdateProfileRequest) GetUserName() string
func (*UpdateProfileRequest) ProtoMessage ¶
func (*UpdateProfileRequest) ProtoMessage()
func (*UpdateProfileRequest) ProtoReflect ¶
func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
func (*UpdateProfileRequest) Reset ¶
func (x *UpdateProfileRequest) Reset()
func (*UpdateProfileRequest) String ¶
func (x *UpdateProfileRequest) String() string
func (*UpdateProfileRequest) Validate ¶
func (m *UpdateProfileRequest) Validate() error
Validate checks the field values on UpdateProfileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateProfileRequest) ValidateAll ¶
func (m *UpdateProfileRequest) ValidateAll() error
ValidateAll checks the field values on UpdateProfileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateProfileRequestMultiError, or nil if none found.
type UpdateProfileRequestMultiError ¶
type UpdateProfileRequestMultiError []error
UpdateProfileRequestMultiError is an error wrapping multiple validation errors returned by UpdateProfileRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateProfileRequestMultiError) AllErrors ¶
func (m UpdateProfileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateProfileRequestMultiError) Error ¶
func (m UpdateProfileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateProfileRequestValidationError ¶
type UpdateProfileRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateProfileRequestValidationError is the validation error returned by UpdateProfileRequest.Validate if the designated constraints aren't met.
func (UpdateProfileRequestValidationError) Cause ¶
func (e UpdateProfileRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateProfileRequestValidationError) Error ¶
func (e UpdateProfileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateProfileRequestValidationError) ErrorName ¶
func (e UpdateProfileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateProfileRequestValidationError) Field ¶
func (e UpdateProfileRequestValidationError) Field() string
Field function returns field value.
func (UpdateProfileRequestValidationError) Key ¶
func (e UpdateProfileRequestValidationError) Key() bool
Key function returns key value.
func (UpdateProfileRequestValidationError) Reason ¶
func (e UpdateProfileRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateProfileResponse ¶
type UpdateProfileResponse struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` LegalName string `protobuf:"bytes,4,opt,name=legal_name,json=legalName,proto3" json:"legal_name,omitempty"` UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` DateOfBirth string `protobuf:"bytes,8,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*UpdateProfileResponse) Descriptor
deprecated
func (*UpdateProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.
func (*UpdateProfileResponse) GetAddress ¶
func (x *UpdateProfileResponse) GetAddress() string
func (*UpdateProfileResponse) GetCreatedAt ¶
func (x *UpdateProfileResponse) GetCreatedAt() *timestamppb.Timestamp
func (*UpdateProfileResponse) GetDateOfBirth ¶
func (x *UpdateProfileResponse) GetDateOfBirth() string
func (*UpdateProfileResponse) GetEmail ¶
func (x *UpdateProfileResponse) GetEmail() string
func (*UpdateProfileResponse) GetLegalName ¶
func (x *UpdateProfileResponse) GetLegalName() string
func (*UpdateProfileResponse) GetName ¶
func (x *UpdateProfileResponse) GetName() string
func (*UpdateProfileResponse) GetRoles ¶
func (x *UpdateProfileResponse) GetRoles() []string
func (*UpdateProfileResponse) GetUpdatedAt ¶
func (x *UpdateProfileResponse) GetUpdatedAt() *timestamppb.Timestamp
func (*UpdateProfileResponse) GetUserId ¶
func (x *UpdateProfileResponse) GetUserId() string
func (*UpdateProfileResponse) GetUserName ¶
func (x *UpdateProfileResponse) GetUserName() string
func (*UpdateProfileResponse) ProtoMessage ¶
func (*UpdateProfileResponse) ProtoMessage()
func (*UpdateProfileResponse) ProtoReflect ¶
func (x *UpdateProfileResponse) ProtoReflect() protoreflect.Message
func (*UpdateProfileResponse) Reset ¶
func (x *UpdateProfileResponse) Reset()
func (*UpdateProfileResponse) String ¶
func (x *UpdateProfileResponse) String() string
func (*UpdateProfileResponse) Validate ¶
func (m *UpdateProfileResponse) Validate() error
Validate checks the field values on UpdateProfileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateProfileResponse) ValidateAll ¶
func (m *UpdateProfileResponse) ValidateAll() error
ValidateAll checks the field values on UpdateProfileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateProfileResponseMultiError, or nil if none found.
type UpdateProfileResponseMultiError ¶
type UpdateProfileResponseMultiError []error
UpdateProfileResponseMultiError is an error wrapping multiple validation errors returned by UpdateProfileResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateProfileResponseMultiError) AllErrors ¶
func (m UpdateProfileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateProfileResponseMultiError) Error ¶
func (m UpdateProfileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateProfileResponseValidationError ¶
type UpdateProfileResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateProfileResponseValidationError is the validation error returned by UpdateProfileResponse.Validate if the designated constraints aren't met.
func (UpdateProfileResponseValidationError) Cause ¶
func (e UpdateProfileResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateProfileResponseValidationError) Error ¶
func (e UpdateProfileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateProfileResponseValidationError) ErrorName ¶
func (e UpdateProfileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateProfileResponseValidationError) Field ¶
func (e UpdateProfileResponseValidationError) Field() string
Field function returns field value.
func (UpdateProfileResponseValidationError) Key ¶
func (e UpdateProfileResponseValidationError) Key() bool
Key function returns key value.
func (UpdateProfileResponseValidationError) Reason ¶
func (e UpdateProfileResponseValidationError) Reason() string
Reason function returns reason value.