Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type CustomerImportance
- func (CustomerImportance) Descriptor() protoreflect.EnumDescriptor
- func (x CustomerImportance) Enum() *CustomerImportance
- func (CustomerImportance) EnumDescriptor() ([]byte, []int)deprecated
- func (x CustomerImportance) Number() protoreflect.EnumNumber
- func (x CustomerImportance) String() string
- func (CustomerImportance) Type() protoreflect.EnumType
- type CustomerListResponse
- func (*CustomerListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerListResponse) GetCustomers() []*CustomerResponse
- func (*CustomerListResponse) ProtoMessage()
- func (x *CustomerListResponse) ProtoReflect() protoreflect.Message
- func (x *CustomerListResponse) Reset()
- func (x *CustomerListResponse) String() string
- func (m *CustomerListResponse) Validate() error
- func (m *CustomerListResponse) ValidateAll() error
- type CustomerListResponseMultiError
- type CustomerListResponseValidationError
- func (e CustomerListResponseValidationError) Cause() error
- func (e CustomerListResponseValidationError) Error() string
- func (e CustomerListResponseValidationError) ErrorName() string
- func (e CustomerListResponseValidationError) Field() string
- func (e CustomerListResponseValidationError) Key() bool
- func (e CustomerListResponseValidationError) Reason() string
- type CustomerResponse
- func (*CustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerResponse) GetEmail() string
- func (x *CustomerResponse) GetFirstName() string
- func (x *CustomerResponse) GetId() string
- func (x *CustomerResponse) GetImportance() CustomerImportance
- func (x *CustomerResponse) GetInactive() bool
- func (x *CustomerResponse) GetLastName() string
- func (x *CustomerResponse) GetMiddleName() string
- func (*CustomerResponse) ProtoMessage()
- func (x *CustomerResponse) ProtoReflect() protoreflect.Message
- func (x *CustomerResponse) Reset()
- func (x *CustomerResponse) String() string
- func (m *CustomerResponse) Validate() error
- func (m *CustomerResponse) ValidateAll() error
- type CustomerResponseMultiError
- type CustomerResponseValidationError
- func (e CustomerResponseValidationError) Cause() error
- func (e CustomerResponseValidationError) Error() string
- func (e CustomerResponseValidationError) ErrorName() string
- func (e CustomerResponseValidationError) Field() string
- func (e CustomerResponseValidationError) Key() bool
- func (e CustomerResponseValidationError) Reason() string
- type CustomerServiceClient
- type CustomerServiceServer
- type DeleteCustomerByIdRequest
- func (*DeleteCustomerByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCustomerByIdRequest) GetId() string
- func (*DeleteCustomerByIdRequest) ProtoMessage()
- func (x *DeleteCustomerByIdRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCustomerByIdRequest) Reset()
- func (x *DeleteCustomerByIdRequest) String() string
- func (m *DeleteCustomerByIdRequest) Validate() error
- func (m *DeleteCustomerByIdRequest) ValidateAll() error
- type DeleteCustomerByIdRequestMultiError
- type DeleteCustomerByIdRequestValidationError
- func (e DeleteCustomerByIdRequestValidationError) Cause() error
- func (e DeleteCustomerByIdRequestValidationError) Error() string
- func (e DeleteCustomerByIdRequestValidationError) ErrorName() string
- func (e DeleteCustomerByIdRequestValidationError) Field() string
- func (e DeleteCustomerByIdRequestValidationError) Key() bool
- func (e DeleteCustomerByIdRequestValidationError) Reason() string
- type GetCustomerByIdRequest
- func (*GetCustomerByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerByIdRequest) GetId() string
- func (*GetCustomerByIdRequest) ProtoMessage()
- func (x *GetCustomerByIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetCustomerByIdRequest) Reset()
- func (x *GetCustomerByIdRequest) String() string
- func (m *GetCustomerByIdRequest) Validate() error
- func (m *GetCustomerByIdRequest) ValidateAll() error
- type GetCustomerByIdRequestMultiError
- type GetCustomerByIdRequestValidationError
- func (e GetCustomerByIdRequestValidationError) Cause() error
- func (e GetCustomerByIdRequestValidationError) Error() string
- func (e GetCustomerByIdRequestValidationError) ErrorName() string
- func (e GetCustomerByIdRequestValidationError) Field() string
- func (e GetCustomerByIdRequestValidationError) Key() bool
- func (e GetCustomerByIdRequestValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetFingerprint() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LogoutRequest
- func (*LogoutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutRequest) GetRefreshToken() string
- func (*LogoutRequest) ProtoMessage()
- func (x *LogoutRequest) ProtoReflect() protoreflect.Message
- func (x *LogoutRequest) Reset()
- func (x *LogoutRequest) String() string
- func (m *LogoutRequest) Validate() error
- func (m *LogoutRequest) ValidateAll() error
- type LogoutRequestMultiError
- type LogoutRequestValidationError
- func (e LogoutRequestValidationError) Cause() error
- func (e LogoutRequestValidationError) Error() string
- func (e LogoutRequestValidationError) ErrorName() string
- func (e LogoutRequestValidationError) Field() string
- func (e LogoutRequestValidationError) Key() bool
- func (e LogoutRequestValidationError) Reason() string
- type NewCustomerRequest
- func (*NewCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewCustomerRequest) GetEmail() string
- func (x *NewCustomerRequest) GetFirstName() string
- func (x *NewCustomerRequest) GetImportance() CustomerImportance
- func (x *NewCustomerRequest) GetInactive() bool
- func (x *NewCustomerRequest) GetLastName() string
- func (x *NewCustomerRequest) GetMiddleName() string
- func (*NewCustomerRequest) ProtoMessage()
- func (x *NewCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *NewCustomerRequest) Reset()
- func (x *NewCustomerRequest) String() string
- func (m *NewCustomerRequest) Validate() error
- func (m *NewCustomerRequest) ValidateAll() error
- type NewCustomerRequestMultiError
- type NewCustomerRequestValidationError
- func (e NewCustomerRequestValidationError) Cause() error
- func (e NewCustomerRequestValidationError) Error() string
- func (e NewCustomerRequestValidationError) ErrorName() string
- func (e NewCustomerRequestValidationError) Field() string
- func (e NewCustomerRequestValidationError) Key() bool
- func (e NewCustomerRequestValidationError) Reason() string
- type NewUserResponse
- func (*NewUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NewUserResponse) GetEmail() string
- func (x *NewUserResponse) GetId() string
- func (*NewUserResponse) ProtoMessage()
- func (x *NewUserResponse) ProtoReflect() protoreflect.Message
- func (x *NewUserResponse) Reset()
- func (x *NewUserResponse) String() string
- func (m *NewUserResponse) Validate() error
- func (m *NewUserResponse) ValidateAll() error
- type NewUserResponseMultiError
- type NewUserResponseValidationError
- func (e NewUserResponseValidationError) Cause() error
- func (e NewUserResponseValidationError) Error() string
- func (e NewUserResponseValidationError) ErrorName() string
- func (e NewUserResponseValidationError) Field() string
- func (e NewUserResponseValidationError) Key() bool
- func (e NewUserResponseValidationError) Reason() string
- type RefreshRequest
- func (*RefreshRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshRequest) GetFingerprint() string
- func (x *RefreshRequest) GetRefreshToken() string
- func (*RefreshRequest) ProtoMessage()
- func (x *RefreshRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshRequest) Reset()
- func (x *RefreshRequest) String() string
- func (m *RefreshRequest) Validate() error
- func (m *RefreshRequest) ValidateAll() error
- type RefreshRequestMultiError
- type RefreshRequestValidationError
- func (e RefreshRequestValidationError) Cause() error
- func (e RefreshRequestValidationError) Error() string
- func (e RefreshRequestValidationError) ErrorName() string
- func (e RefreshRequestValidationError) Field() string
- func (e RefreshRequestValidationError) Key() bool
- func (e RefreshRequestValidationError) Reason() string
- type SessionResponse
- func (*SessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SessionResponse) GetExpiresAt() int64
- func (x *SessionResponse) GetRefreshToken() string
- func (x *SessionResponse) GetToken() string
- func (*SessionResponse) ProtoMessage()
- func (x *SessionResponse) ProtoReflect() protoreflect.Message
- func (x *SessionResponse) Reset()
- func (x *SessionResponse) String() string
- func (m *SessionResponse) Validate() error
- func (m *SessionResponse) ValidateAll() error
- type SessionResponseMultiError
- type SessionResponseValidationError
- func (e SessionResponseValidationError) Cause() error
- func (e SessionResponseValidationError) Error() string
- func (e SessionResponseValidationError) ErrorName() string
- func (e SessionResponseValidationError) Field() string
- func (e SessionResponseValidationError) Key() bool
- func (e SessionResponseValidationError) Reason() string
- type SignupRequest
- func (*SignupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignupRequest) GetEmail() string
- func (x *SignupRequest) GetPassword() string
- func (*SignupRequest) ProtoMessage()
- func (x *SignupRequest) ProtoReflect() protoreflect.Message
- func (x *SignupRequest) Reset()
- func (x *SignupRequest) String() string
- func (m *SignupRequest) Validate() error
- func (m *SignupRequest) ValidateAll() error
- type SignupRequestMultiError
- type SignupRequestValidationError
- func (e SignupRequestValidationError) Cause() error
- func (e SignupRequestValidationError) Error() string
- func (e SignupRequestValidationError) ErrorName() string
- func (e SignupRequestValidationError) Field() string
- func (e SignupRequestValidationError) Key() bool
- func (e SignupRequestValidationError) Reason() string
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*SessionResponse, error)
- func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServiceServer) Refresh(context.Context, *RefreshRequest) (*SessionResponse, error)
- func (UnimplementedAuthServiceServer) Signup(context.Context, *SignupRequest) (*NewUserResponse, error)
- type UnimplementedCustomerServiceServer
- func (UnimplementedCustomerServiceServer) Create(context.Context, *NewCustomerRequest) (*CustomerResponse, error)
- func (UnimplementedCustomerServiceServer) DeleteByID(context.Context, *DeleteCustomerByIdRequest) (*emptypb.Empty, error)
- func (UnimplementedCustomerServiceServer) GetAll(context.Context, *emptypb.Empty) (*CustomerListResponse, error)
- func (UnimplementedCustomerServiceServer) GetByID(context.Context, *GetCustomerByIdRequest) (*CustomerResponse, error)
- func (UnimplementedCustomerServiceServer) Upsert(context.Context, *UpdateCustomerRequest) (*CustomerResponse, error)
- type UnsafeAuthServiceServer
- type UnsafeCustomerServiceServer
- type UpdateCustomerRequest
- func (*UpdateCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCustomerRequest) GetEmail() string
- func (x *UpdateCustomerRequest) GetFirstName() string
- func (x *UpdateCustomerRequest) GetId() string
- func (x *UpdateCustomerRequest) GetImportance() CustomerImportance
- func (x *UpdateCustomerRequest) GetInactive() bool
- func (x *UpdateCustomerRequest) GetLastName() string
- func (x *UpdateCustomerRequest) GetMiddleName() string
- func (*UpdateCustomerRequest) ProtoMessage()
- func (x *UpdateCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCustomerRequest) Reset()
- func (x *UpdateCustomerRequest) String() string
- func (m *UpdateCustomerRequest) Validate() error
- func (m *UpdateCustomerRequest) ValidateAll() error
- type UpdateCustomerRequestMultiError
- type UpdateCustomerRequestValidationError
- func (e UpdateCustomerRequestValidationError) Cause() error
- func (e UpdateCustomerRequestValidationError) Error() string
- func (e UpdateCustomerRequestValidationError) ErrorName() string
- func (e UpdateCustomerRequestValidationError) Field() string
- func (e UpdateCustomerRequestValidationError) Key() bool
- func (e UpdateCustomerRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( CustomerImportance_name = map[int32]string{ 0: "LOW", 1: "MEDIUM", 2: "HIGH", 3: "CRITICAL", } CustomerImportance_value = map[string]int32{ "LOW": 0, "MEDIUM": 1, "HIGH": 2, "CRITICAL": 3, } )
Enum value maps for CustomerImportance.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Signup", Handler: _AuthService_Signup_Handler, }, { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "Logout", Handler: _AuthService_Logout_Handler, }, { MethodName: "Refresh", Handler: _AuthService_Refresh_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CustomerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "customer.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByID", Handler: _CustomerService_GetByID_Handler, }, { MethodName: "GetAll", Handler: _CustomerService_GetAll_Handler, }, { MethodName: "Create", Handler: _CustomerService_Create_Handler, }, { MethodName: "Upsert", Handler: _CustomerService_Upsert_Handler, }, { MethodName: "DeleteByID", Handler: _CustomerService_DeleteByID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "customer.proto", }
CustomerService_ServiceDesc is the grpc.ServiceDesc for CustomerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_proto protoreflect.FileDescriptor
var File_customer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { Signup(ctx context.Context, in *SignupRequest, opts ...grpc.CallOption) (*NewUserResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*SessionResponse, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*SessionResponse, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Signup(context.Context, *SignupRequest) (*NewUserResponse, error) Login(context.Context, *LoginRequest) (*SessionResponse, error) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error) Refresh(context.Context, *RefreshRequest) (*SessionResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type CustomerImportance ¶
type CustomerImportance int32
const ( CustomerImportance_LOW CustomerImportance = 0 CustomerImportance_MEDIUM CustomerImportance = 1 CustomerImportance_HIGH CustomerImportance = 2 CustomerImportance_CRITICAL CustomerImportance = 3 )
func (CustomerImportance) Descriptor ¶
func (CustomerImportance) Descriptor() protoreflect.EnumDescriptor
func (CustomerImportance) Enum ¶
func (x CustomerImportance) Enum() *CustomerImportance
func (CustomerImportance) EnumDescriptor
deprecated
func (CustomerImportance) EnumDescriptor() ([]byte, []int)
Deprecated: Use CustomerImportance.Descriptor instead.
func (CustomerImportance) Number ¶
func (x CustomerImportance) Number() protoreflect.EnumNumber
func (CustomerImportance) String ¶
func (x CustomerImportance) String() string
func (CustomerImportance) Type ¶
func (CustomerImportance) Type() protoreflect.EnumType
type CustomerListResponse ¶
type CustomerListResponse struct { Customers []*CustomerResponse `protobuf:"bytes,1,rep,name=customers,proto3" json:"customers,omitempty"` // contains filtered or unexported fields }
func (*CustomerListResponse) Descriptor
deprecated
func (*CustomerListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CustomerListResponse.ProtoReflect.Descriptor instead.
func (*CustomerListResponse) GetCustomers ¶
func (x *CustomerListResponse) GetCustomers() []*CustomerResponse
func (*CustomerListResponse) ProtoMessage ¶
func (*CustomerListResponse) ProtoMessage()
func (*CustomerListResponse) ProtoReflect ¶
func (x *CustomerListResponse) ProtoReflect() protoreflect.Message
func (*CustomerListResponse) Reset ¶
func (x *CustomerListResponse) Reset()
func (*CustomerListResponse) String ¶
func (x *CustomerListResponse) String() string
func (*CustomerListResponse) Validate ¶
func (m *CustomerListResponse) Validate() error
Validate checks the field values on CustomerListResponse 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 (*CustomerListResponse) ValidateAll ¶
func (m *CustomerListResponse) ValidateAll() error
ValidateAll checks the field values on CustomerListResponse 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 CustomerListResponseMultiError, or nil if none found.
type CustomerListResponseMultiError ¶
type CustomerListResponseMultiError []error
CustomerListResponseMultiError is an error wrapping multiple validation errors returned by CustomerListResponse.ValidateAll() if the designated constraints aren't met.
func (CustomerListResponseMultiError) AllErrors ¶
func (m CustomerListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CustomerListResponseMultiError) Error ¶
func (m CustomerListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CustomerListResponseValidationError ¶
type CustomerListResponseValidationError struct {
// contains filtered or unexported fields
}
CustomerListResponseValidationError is the validation error returned by CustomerListResponse.Validate if the designated constraints aren't met.
func (CustomerListResponseValidationError) Cause ¶
func (e CustomerListResponseValidationError) Cause() error
Cause function returns cause value.
func (CustomerListResponseValidationError) Error ¶
func (e CustomerListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CustomerListResponseValidationError) ErrorName ¶
func (e CustomerListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CustomerListResponseValidationError) Field ¶
func (e CustomerListResponseValidationError) Field() string
Field function returns field value.
func (CustomerListResponseValidationError) Key ¶
func (e CustomerListResponseValidationError) Key() bool
Key function returns key value.
func (CustomerListResponseValidationError) Reason ¶
func (e CustomerListResponseValidationError) Reason() string
Reason function returns reason value.
type CustomerResponse ¶
type CustomerResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` MiddleName *string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3,oneof" json:"middle_name,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` Importance CustomerImportance `protobuf:"varint,6,opt,name=importance,proto3,enum=customer.CustomerImportance" json:"importance,omitempty"` Inactive bool `protobuf:"varint,7,opt,name=inactive,proto3" json:"inactive,omitempty"` // contains filtered or unexported fields }
func (*CustomerResponse) Descriptor
deprecated
func (*CustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CustomerResponse.ProtoReflect.Descriptor instead.
func (*CustomerResponse) GetEmail ¶
func (x *CustomerResponse) GetEmail() string
func (*CustomerResponse) GetFirstName ¶
func (x *CustomerResponse) GetFirstName() string
func (*CustomerResponse) GetId ¶
func (x *CustomerResponse) GetId() string
func (*CustomerResponse) GetImportance ¶
func (x *CustomerResponse) GetImportance() CustomerImportance
func (*CustomerResponse) GetInactive ¶
func (x *CustomerResponse) GetInactive() bool
func (*CustomerResponse) GetLastName ¶
func (x *CustomerResponse) GetLastName() string
func (*CustomerResponse) GetMiddleName ¶
func (x *CustomerResponse) GetMiddleName() string
func (*CustomerResponse) ProtoMessage ¶
func (*CustomerResponse) ProtoMessage()
func (*CustomerResponse) ProtoReflect ¶
func (x *CustomerResponse) ProtoReflect() protoreflect.Message
func (*CustomerResponse) Reset ¶
func (x *CustomerResponse) Reset()
func (*CustomerResponse) String ¶
func (x *CustomerResponse) String() string
func (*CustomerResponse) Validate ¶
func (m *CustomerResponse) Validate() error
Validate checks the field values on CustomerResponse 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 (*CustomerResponse) ValidateAll ¶
func (m *CustomerResponse) ValidateAll() error
ValidateAll checks the field values on CustomerResponse 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 CustomerResponseMultiError, or nil if none found.
type CustomerResponseMultiError ¶
type CustomerResponseMultiError []error
CustomerResponseMultiError is an error wrapping multiple validation errors returned by CustomerResponse.ValidateAll() if the designated constraints aren't met.
func (CustomerResponseMultiError) AllErrors ¶
func (m CustomerResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CustomerResponseMultiError) Error ¶
func (m CustomerResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CustomerResponseValidationError ¶
type CustomerResponseValidationError struct {
// contains filtered or unexported fields
}
CustomerResponseValidationError is the validation error returned by CustomerResponse.Validate if the designated constraints aren't met.
func (CustomerResponseValidationError) Cause ¶
func (e CustomerResponseValidationError) Cause() error
Cause function returns cause value.
func (CustomerResponseValidationError) Error ¶
func (e CustomerResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CustomerResponseValidationError) ErrorName ¶
func (e CustomerResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CustomerResponseValidationError) Field ¶
func (e CustomerResponseValidationError) Field() string
Field function returns field value.
func (CustomerResponseValidationError) Key ¶
func (e CustomerResponseValidationError) Key() bool
Key function returns key value.
func (CustomerResponseValidationError) Reason ¶
func (e CustomerResponseValidationError) Reason() string
Reason function returns reason value.
type CustomerServiceClient ¶
type CustomerServiceClient interface { GetByID(ctx context.Context, in *GetCustomerByIdRequest, opts ...grpc.CallOption) (*CustomerResponse, error) GetAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CustomerListResponse, error) Create(ctx context.Context, in *NewCustomerRequest, opts ...grpc.CallOption) (*CustomerResponse, error) Upsert(ctx context.Context, in *UpdateCustomerRequest, opts ...grpc.CallOption) (*CustomerResponse, error) DeleteByID(ctx context.Context, in *DeleteCustomerByIdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
CustomerServiceClient is the client API for CustomerService 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 NewCustomerServiceClient ¶
func NewCustomerServiceClient(cc grpc.ClientConnInterface) CustomerServiceClient
type CustomerServiceServer ¶
type CustomerServiceServer interface { GetByID(context.Context, *GetCustomerByIdRequest) (*CustomerResponse, error) GetAll(context.Context, *emptypb.Empty) (*CustomerListResponse, error) Create(context.Context, *NewCustomerRequest) (*CustomerResponse, error) Upsert(context.Context, *UpdateCustomerRequest) (*CustomerResponse, error) DeleteByID(context.Context, *DeleteCustomerByIdRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type DeleteCustomerByIdRequest ¶
type DeleteCustomerByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCustomerByIdRequest) Descriptor
deprecated
func (*DeleteCustomerByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCustomerByIdRequest.ProtoReflect.Descriptor instead.
func (*DeleteCustomerByIdRequest) GetId ¶
func (x *DeleteCustomerByIdRequest) GetId() string
func (*DeleteCustomerByIdRequest) ProtoMessage ¶
func (*DeleteCustomerByIdRequest) ProtoMessage()
func (*DeleteCustomerByIdRequest) ProtoReflect ¶
func (x *DeleteCustomerByIdRequest) ProtoReflect() protoreflect.Message
func (*DeleteCustomerByIdRequest) Reset ¶
func (x *DeleteCustomerByIdRequest) Reset()
func (*DeleteCustomerByIdRequest) String ¶
func (x *DeleteCustomerByIdRequest) String() string
func (*DeleteCustomerByIdRequest) Validate ¶
func (m *DeleteCustomerByIdRequest) Validate() error
Validate checks the field values on DeleteCustomerByIdRequest 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 (*DeleteCustomerByIdRequest) ValidateAll ¶
func (m *DeleteCustomerByIdRequest) ValidateAll() error
ValidateAll checks the field values on DeleteCustomerByIdRequest 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 DeleteCustomerByIdRequestMultiError, or nil if none found.
type DeleteCustomerByIdRequestMultiError ¶
type DeleteCustomerByIdRequestMultiError []error
DeleteCustomerByIdRequestMultiError is an error wrapping multiple validation errors returned by DeleteCustomerByIdRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteCustomerByIdRequestMultiError) AllErrors ¶
func (m DeleteCustomerByIdRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteCustomerByIdRequestMultiError) Error ¶
func (m DeleteCustomerByIdRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteCustomerByIdRequestValidationError ¶
type DeleteCustomerByIdRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteCustomerByIdRequestValidationError is the validation error returned by DeleteCustomerByIdRequest.Validate if the designated constraints aren't met.
func (DeleteCustomerByIdRequestValidationError) Cause ¶
func (e DeleteCustomerByIdRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteCustomerByIdRequestValidationError) Error ¶
func (e DeleteCustomerByIdRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteCustomerByIdRequestValidationError) ErrorName ¶
func (e DeleteCustomerByIdRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteCustomerByIdRequestValidationError) Field ¶
func (e DeleteCustomerByIdRequestValidationError) Field() string
Field function returns field value.
func (DeleteCustomerByIdRequestValidationError) Key ¶
func (e DeleteCustomerByIdRequestValidationError) Key() bool
Key function returns key value.
func (DeleteCustomerByIdRequestValidationError) Reason ¶
func (e DeleteCustomerByIdRequestValidationError) Reason() string
Reason function returns reason value.
type GetCustomerByIdRequest ¶
type GetCustomerByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerByIdRequest) Descriptor
deprecated
func (*GetCustomerByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerByIdRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerByIdRequest) GetId ¶
func (x *GetCustomerByIdRequest) GetId() string
func (*GetCustomerByIdRequest) ProtoMessage ¶
func (*GetCustomerByIdRequest) ProtoMessage()
func (*GetCustomerByIdRequest) ProtoReflect ¶
func (x *GetCustomerByIdRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerByIdRequest) Reset ¶
func (x *GetCustomerByIdRequest) Reset()
func (*GetCustomerByIdRequest) String ¶
func (x *GetCustomerByIdRequest) String() string
func (*GetCustomerByIdRequest) Validate ¶
func (m *GetCustomerByIdRequest) Validate() error
Validate checks the field values on GetCustomerByIdRequest 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 (*GetCustomerByIdRequest) ValidateAll ¶
func (m *GetCustomerByIdRequest) ValidateAll() error
ValidateAll checks the field values on GetCustomerByIdRequest 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 GetCustomerByIdRequestMultiError, or nil if none found.
type GetCustomerByIdRequestMultiError ¶
type GetCustomerByIdRequestMultiError []error
GetCustomerByIdRequestMultiError is an error wrapping multiple validation errors returned by GetCustomerByIdRequest.ValidateAll() if the designated constraints aren't met.
func (GetCustomerByIdRequestMultiError) AllErrors ¶
func (m GetCustomerByIdRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCustomerByIdRequestMultiError) Error ¶
func (m GetCustomerByIdRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCustomerByIdRequestValidationError ¶
type GetCustomerByIdRequestValidationError struct {
// contains filtered or unexported fields
}
GetCustomerByIdRequestValidationError is the validation error returned by GetCustomerByIdRequest.Validate if the designated constraints aren't met.
func (GetCustomerByIdRequestValidationError) Cause ¶
func (e GetCustomerByIdRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCustomerByIdRequestValidationError) Error ¶
func (e GetCustomerByIdRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCustomerByIdRequestValidationError) ErrorName ¶
func (e GetCustomerByIdRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCustomerByIdRequestValidationError) Field ¶
func (e GetCustomerByIdRequestValidationError) Field() string
Field function returns field value.
func (GetCustomerByIdRequestValidationError) Key ¶
func (e GetCustomerByIdRequestValidationError) Key() bool
Key function returns key value.
func (GetCustomerByIdRequestValidationError) Reason ¶
func (e GetCustomerByIdRequestValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest 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"` Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetFingerprint ¶
func (x *LoginRequest) GetFingerprint() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LogoutRequest ¶
type LogoutRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) GetRefreshToken ¶
func (x *LogoutRequest) GetRefreshToken() string
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) ProtoReflect ¶
func (x *LogoutRequest) ProtoReflect() protoreflect.Message
func (*LogoutRequest) Reset ¶
func (x *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (x *LogoutRequest) String() string
func (*LogoutRequest) Validate ¶
func (m *LogoutRequest) Validate() error
Validate checks the field values on LogoutRequest 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 (*LogoutRequest) ValidateAll ¶
func (m *LogoutRequest) ValidateAll() error
ValidateAll checks the field values on LogoutRequest 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 LogoutRequestMultiError, or nil if none found.
type LogoutRequestMultiError ¶
type LogoutRequestMultiError []error
LogoutRequestMultiError is an error wrapping multiple validation errors returned by LogoutRequest.ValidateAll() if the designated constraints aren't met.
func (LogoutRequestMultiError) AllErrors ¶
func (m LogoutRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutRequestMultiError) Error ¶
func (m LogoutRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutRequestValidationError ¶
type LogoutRequestValidationError struct {
// contains filtered or unexported fields
}
LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.
func (LogoutRequestValidationError) Cause ¶
func (e LogoutRequestValidationError) Cause() error
Cause function returns cause value.
func (LogoutRequestValidationError) Error ¶
func (e LogoutRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutRequestValidationError) ErrorName ¶
func (e LogoutRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutRequestValidationError) Field ¶
func (e LogoutRequestValidationError) Field() string
Field function returns field value.
func (LogoutRequestValidationError) Key ¶
func (e LogoutRequestValidationError) Key() bool
Key function returns key value.
func (LogoutRequestValidationError) Reason ¶
func (e LogoutRequestValidationError) Reason() string
Reason function returns reason value.
type NewCustomerRequest ¶
type NewCustomerRequest struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` MiddleName *string `protobuf:"bytes,3,opt,name=middle_name,json=middleName,proto3,oneof" json:"middle_name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Importance CustomerImportance `protobuf:"varint,5,opt,name=importance,proto3,enum=customer.CustomerImportance" json:"importance,omitempty"` Inactive bool `protobuf:"varint,6,opt,name=inactive,proto3" json:"inactive,omitempty"` // contains filtered or unexported fields }
func (*NewCustomerRequest) Descriptor
deprecated
func (*NewCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewCustomerRequest.ProtoReflect.Descriptor instead.
func (*NewCustomerRequest) GetEmail ¶
func (x *NewCustomerRequest) GetEmail() string
func (*NewCustomerRequest) GetFirstName ¶
func (x *NewCustomerRequest) GetFirstName() string
func (*NewCustomerRequest) GetImportance ¶
func (x *NewCustomerRequest) GetImportance() CustomerImportance
func (*NewCustomerRequest) GetInactive ¶
func (x *NewCustomerRequest) GetInactive() bool
func (*NewCustomerRequest) GetLastName ¶
func (x *NewCustomerRequest) GetLastName() string
func (*NewCustomerRequest) GetMiddleName ¶
func (x *NewCustomerRequest) GetMiddleName() string
func (*NewCustomerRequest) ProtoMessage ¶
func (*NewCustomerRequest) ProtoMessage()
func (*NewCustomerRequest) ProtoReflect ¶
func (x *NewCustomerRequest) ProtoReflect() protoreflect.Message
func (*NewCustomerRequest) Reset ¶
func (x *NewCustomerRequest) Reset()
func (*NewCustomerRequest) String ¶
func (x *NewCustomerRequest) String() string
func (*NewCustomerRequest) Validate ¶
func (m *NewCustomerRequest) Validate() error
Validate checks the field values on NewCustomerRequest 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 (*NewCustomerRequest) ValidateAll ¶
func (m *NewCustomerRequest) ValidateAll() error
ValidateAll checks the field values on NewCustomerRequest 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 NewCustomerRequestMultiError, or nil if none found.
type NewCustomerRequestMultiError ¶
type NewCustomerRequestMultiError []error
NewCustomerRequestMultiError is an error wrapping multiple validation errors returned by NewCustomerRequest.ValidateAll() if the designated constraints aren't met.
func (NewCustomerRequestMultiError) AllErrors ¶
func (m NewCustomerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NewCustomerRequestMultiError) Error ¶
func (m NewCustomerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NewCustomerRequestValidationError ¶
type NewCustomerRequestValidationError struct {
// contains filtered or unexported fields
}
NewCustomerRequestValidationError is the validation error returned by NewCustomerRequest.Validate if the designated constraints aren't met.
func (NewCustomerRequestValidationError) Cause ¶
func (e NewCustomerRequestValidationError) Cause() error
Cause function returns cause value.
func (NewCustomerRequestValidationError) Error ¶
func (e NewCustomerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (NewCustomerRequestValidationError) ErrorName ¶
func (e NewCustomerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (NewCustomerRequestValidationError) Field ¶
func (e NewCustomerRequestValidationError) Field() string
Field function returns field value.
func (NewCustomerRequestValidationError) Key ¶
func (e NewCustomerRequestValidationError) Key() bool
Key function returns key value.
func (NewCustomerRequestValidationError) Reason ¶
func (e NewCustomerRequestValidationError) Reason() string
Reason function returns reason value.
type NewUserResponse ¶
type NewUserResponse 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"` // contains filtered or unexported fields }
func (*NewUserResponse) Descriptor
deprecated
func (*NewUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewUserResponse.ProtoReflect.Descriptor instead.
func (*NewUserResponse) GetEmail ¶
func (x *NewUserResponse) GetEmail() string
func (*NewUserResponse) GetId ¶
func (x *NewUserResponse) GetId() string
func (*NewUserResponse) ProtoMessage ¶
func (*NewUserResponse) ProtoMessage()
func (*NewUserResponse) ProtoReflect ¶
func (x *NewUserResponse) ProtoReflect() protoreflect.Message
func (*NewUserResponse) Reset ¶
func (x *NewUserResponse) Reset()
func (*NewUserResponse) String ¶
func (x *NewUserResponse) String() string
func (*NewUserResponse) Validate ¶
func (m *NewUserResponse) Validate() error
Validate checks the field values on NewUserResponse 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 (*NewUserResponse) ValidateAll ¶
func (m *NewUserResponse) ValidateAll() error
ValidateAll checks the field values on NewUserResponse 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 NewUserResponseMultiError, or nil if none found.
type NewUserResponseMultiError ¶
type NewUserResponseMultiError []error
NewUserResponseMultiError is an error wrapping multiple validation errors returned by NewUserResponse.ValidateAll() if the designated constraints aren't met.
func (NewUserResponseMultiError) AllErrors ¶
func (m NewUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NewUserResponseMultiError) Error ¶
func (m NewUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NewUserResponseValidationError ¶
type NewUserResponseValidationError struct {
// contains filtered or unexported fields
}
NewUserResponseValidationError is the validation error returned by NewUserResponse.Validate if the designated constraints aren't met.
func (NewUserResponseValidationError) Cause ¶
func (e NewUserResponseValidationError) Cause() error
Cause function returns cause value.
func (NewUserResponseValidationError) Error ¶
func (e NewUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (NewUserResponseValidationError) ErrorName ¶
func (e NewUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (NewUserResponseValidationError) Field ¶
func (e NewUserResponseValidationError) Field() string
Field function returns field value.
func (NewUserResponseValidationError) Key ¶
func (e NewUserResponseValidationError) Key() bool
Key function returns key value.
func (NewUserResponseValidationError) Reason ¶
func (e NewUserResponseValidationError) Reason() string
Reason function returns reason value.
type RefreshRequest ¶
type RefreshRequest struct { Fingerprint string `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshRequest) Descriptor
deprecated
func (*RefreshRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead.
func (*RefreshRequest) GetFingerprint ¶
func (x *RefreshRequest) GetFingerprint() string
func (*RefreshRequest) GetRefreshToken ¶
func (x *RefreshRequest) GetRefreshToken() string
func (*RefreshRequest) ProtoMessage ¶
func (*RefreshRequest) ProtoMessage()
func (*RefreshRequest) ProtoReflect ¶
func (x *RefreshRequest) ProtoReflect() protoreflect.Message
func (*RefreshRequest) Reset ¶
func (x *RefreshRequest) Reset()
func (*RefreshRequest) String ¶
func (x *RefreshRequest) String() string
func (*RefreshRequest) Validate ¶
func (m *RefreshRequest) Validate() error
Validate checks the field values on RefreshRequest 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 (*RefreshRequest) ValidateAll ¶
func (m *RefreshRequest) ValidateAll() error
ValidateAll checks the field values on RefreshRequest 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 RefreshRequestMultiError, or nil if none found.
type RefreshRequestMultiError ¶
type RefreshRequestMultiError []error
RefreshRequestMultiError is an error wrapping multiple validation errors returned by RefreshRequest.ValidateAll() if the designated constraints aren't met.
func (RefreshRequestMultiError) AllErrors ¶
func (m RefreshRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshRequestMultiError) Error ¶
func (m RefreshRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshRequestValidationError ¶
type RefreshRequestValidationError struct {
// contains filtered or unexported fields
}
RefreshRequestValidationError is the validation error returned by RefreshRequest.Validate if the designated constraints aren't met.
func (RefreshRequestValidationError) Cause ¶
func (e RefreshRequestValidationError) Cause() error
Cause function returns cause value.
func (RefreshRequestValidationError) Error ¶
func (e RefreshRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshRequestValidationError) ErrorName ¶
func (e RefreshRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshRequestValidationError) Field ¶
func (e RefreshRequestValidationError) Field() string
Field function returns field value.
func (RefreshRequestValidationError) Key ¶
func (e RefreshRequestValidationError) Key() bool
Key function returns key value.
func (RefreshRequestValidationError) Reason ¶
func (e RefreshRequestValidationError) Reason() string
Reason function returns reason value.
type SessionResponse ¶
type SessionResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ExpiresAt int64 `protobuf:"varint,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*SessionResponse) Descriptor
deprecated
func (*SessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use SessionResponse.ProtoReflect.Descriptor instead.
func (*SessionResponse) GetExpiresAt ¶
func (x *SessionResponse) GetExpiresAt() int64
func (*SessionResponse) GetRefreshToken ¶
func (x *SessionResponse) GetRefreshToken() string
func (*SessionResponse) GetToken ¶
func (x *SessionResponse) GetToken() string
func (*SessionResponse) ProtoMessage ¶
func (*SessionResponse) ProtoMessage()
func (*SessionResponse) ProtoReflect ¶
func (x *SessionResponse) ProtoReflect() protoreflect.Message
func (*SessionResponse) Reset ¶
func (x *SessionResponse) Reset()
func (*SessionResponse) String ¶
func (x *SessionResponse) String() string
func (*SessionResponse) Validate ¶
func (m *SessionResponse) Validate() error
Validate checks the field values on SessionResponse 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 (*SessionResponse) ValidateAll ¶
func (m *SessionResponse) ValidateAll() error
ValidateAll checks the field values on SessionResponse 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 SessionResponseMultiError, or nil if none found.
type SessionResponseMultiError ¶
type SessionResponseMultiError []error
SessionResponseMultiError is an error wrapping multiple validation errors returned by SessionResponse.ValidateAll() if the designated constraints aren't met.
func (SessionResponseMultiError) AllErrors ¶
func (m SessionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SessionResponseMultiError) Error ¶
func (m SessionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SessionResponseValidationError ¶
type SessionResponseValidationError struct {
// contains filtered or unexported fields
}
SessionResponseValidationError is the validation error returned by SessionResponse.Validate if the designated constraints aren't met.
func (SessionResponseValidationError) Cause ¶
func (e SessionResponseValidationError) Cause() error
Cause function returns cause value.
func (SessionResponseValidationError) Error ¶
func (e SessionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SessionResponseValidationError) ErrorName ¶
func (e SessionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SessionResponseValidationError) Field ¶
func (e SessionResponseValidationError) Field() string
Field function returns field value.
func (SessionResponseValidationError) Key ¶
func (e SessionResponseValidationError) Key() bool
Key function returns key value.
func (SessionResponseValidationError) Reason ¶
func (e SessionResponseValidationError) Reason() string
Reason function returns reason value.
type SignupRequest ¶
type SignupRequest 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 (*SignupRequest) Descriptor
deprecated
func (*SignupRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignupRequest.ProtoReflect.Descriptor instead.
func (*SignupRequest) GetEmail ¶
func (x *SignupRequest) GetEmail() string
func (*SignupRequest) GetPassword ¶
func (x *SignupRequest) GetPassword() string
func (*SignupRequest) ProtoMessage ¶
func (*SignupRequest) ProtoMessage()
func (*SignupRequest) ProtoReflect ¶
func (x *SignupRequest) ProtoReflect() protoreflect.Message
func (*SignupRequest) Reset ¶
func (x *SignupRequest) Reset()
func (*SignupRequest) String ¶
func (x *SignupRequest) String() string
func (*SignupRequest) Validate ¶
func (m *SignupRequest) Validate() error
Validate checks the field values on SignupRequest 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 (*SignupRequest) ValidateAll ¶
func (m *SignupRequest) ValidateAll() error
ValidateAll checks the field values on SignupRequest 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 SignupRequestMultiError, or nil if none found.
type SignupRequestMultiError ¶
type SignupRequestMultiError []error
SignupRequestMultiError is an error wrapping multiple validation errors returned by SignupRequest.ValidateAll() if the designated constraints aren't met.
func (SignupRequestMultiError) AllErrors ¶
func (m SignupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SignupRequestMultiError) Error ¶
func (m SignupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SignupRequestValidationError ¶
type SignupRequestValidationError struct {
// contains filtered or unexported fields
}
SignupRequestValidationError is the validation error returned by SignupRequest.Validate if the designated constraints aren't met.
func (SignupRequestValidationError) Cause ¶
func (e SignupRequestValidationError) Cause() error
Cause function returns cause value.
func (SignupRequestValidationError) Error ¶
func (e SignupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SignupRequestValidationError) ErrorName ¶
func (e SignupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SignupRequestValidationError) Field ¶
func (e SignupRequestValidationError) Field() string
Field function returns field value.
func (SignupRequestValidationError) Key ¶
func (e SignupRequestValidationError) Key() bool
Key function returns key value.
func (SignupRequestValidationError) Reason ¶
func (e SignupRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*SessionResponse, error)
func (UnimplementedAuthServiceServer) Logout ¶
func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServiceServer) Refresh ¶
func (UnimplementedAuthServiceServer) Refresh(context.Context, *RefreshRequest) (*SessionResponse, error)
func (UnimplementedAuthServiceServer) Signup ¶
func (UnimplementedAuthServiceServer) Signup(context.Context, *SignupRequest) (*NewUserResponse, error)
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) Create ¶
func (UnimplementedCustomerServiceServer) Create(context.Context, *NewCustomerRequest) (*CustomerResponse, error)
func (UnimplementedCustomerServiceServer) DeleteByID ¶
func (UnimplementedCustomerServiceServer) DeleteByID(context.Context, *DeleteCustomerByIdRequest) (*emptypb.Empty, error)
func (UnimplementedCustomerServiceServer) GetAll ¶
func (UnimplementedCustomerServiceServer) GetAll(context.Context, *emptypb.Empty) (*CustomerListResponse, error)
func (UnimplementedCustomerServiceServer) GetByID ¶
func (UnimplementedCustomerServiceServer) GetByID(context.Context, *GetCustomerByIdRequest) (*CustomerResponse, error)
func (UnimplementedCustomerServiceServer) Upsert ¶
func (UnimplementedCustomerServiceServer) Upsert(context.Context, *UpdateCustomerRequest) (*CustomerResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeCustomerServiceServer ¶
type UnsafeCustomerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCustomerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CustomerServiceServer will result in compilation errors.
type UpdateCustomerRequest ¶
type UpdateCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` MiddleName *string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3,oneof" json:"middle_name,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` Importance CustomerImportance `protobuf:"varint,6,opt,name=importance,proto3,enum=customer.CustomerImportance" json:"importance,omitempty"` Inactive bool `protobuf:"varint,7,opt,name=inactive,proto3" json:"inactive,omitempty"` // contains filtered or unexported fields }
func (*UpdateCustomerRequest) Descriptor
deprecated
func (*UpdateCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCustomerRequest.ProtoReflect.Descriptor instead.
func (*UpdateCustomerRequest) GetEmail ¶
func (x *UpdateCustomerRequest) GetEmail() string
func (*UpdateCustomerRequest) GetFirstName ¶
func (x *UpdateCustomerRequest) GetFirstName() string
func (*UpdateCustomerRequest) GetId ¶
func (x *UpdateCustomerRequest) GetId() string
func (*UpdateCustomerRequest) GetImportance ¶
func (x *UpdateCustomerRequest) GetImportance() CustomerImportance
func (*UpdateCustomerRequest) GetInactive ¶
func (x *UpdateCustomerRequest) GetInactive() bool
func (*UpdateCustomerRequest) GetLastName ¶
func (x *UpdateCustomerRequest) GetLastName() string
func (*UpdateCustomerRequest) GetMiddleName ¶
func (x *UpdateCustomerRequest) GetMiddleName() string
func (*UpdateCustomerRequest) ProtoMessage ¶
func (*UpdateCustomerRequest) ProtoMessage()
func (*UpdateCustomerRequest) ProtoReflect ¶
func (x *UpdateCustomerRequest) ProtoReflect() protoreflect.Message
func (*UpdateCustomerRequest) Reset ¶
func (x *UpdateCustomerRequest) Reset()
func (*UpdateCustomerRequest) String ¶
func (x *UpdateCustomerRequest) String() string
func (*UpdateCustomerRequest) Validate ¶
func (m *UpdateCustomerRequest) Validate() error
Validate checks the field values on UpdateCustomerRequest 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 (*UpdateCustomerRequest) ValidateAll ¶
func (m *UpdateCustomerRequest) ValidateAll() error
ValidateAll checks the field values on UpdateCustomerRequest 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 UpdateCustomerRequestMultiError, or nil if none found.
type UpdateCustomerRequestMultiError ¶
type UpdateCustomerRequestMultiError []error
UpdateCustomerRequestMultiError is an error wrapping multiple validation errors returned by UpdateCustomerRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateCustomerRequestMultiError) AllErrors ¶
func (m UpdateCustomerRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCustomerRequestMultiError) Error ¶
func (m UpdateCustomerRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCustomerRequestValidationError ¶
type UpdateCustomerRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCustomerRequestValidationError is the validation error returned by UpdateCustomerRequest.Validate if the designated constraints aren't met.
func (UpdateCustomerRequestValidationError) Cause ¶
func (e UpdateCustomerRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCustomerRequestValidationError) Error ¶
func (e UpdateCustomerRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCustomerRequestValidationError) ErrorName ¶
func (e UpdateCustomerRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCustomerRequestValidationError) Field ¶
func (e UpdateCustomerRequestValidationError) Field() string
Field function returns field value.
func (UpdateCustomerRequestValidationError) Key ¶
func (e UpdateCustomerRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCustomerRequestValidationError) Reason ¶
func (e UpdateCustomerRequestValidationError) Reason() string
Reason function returns reason value.