proto

package
v0.0.0-...-9fa777b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
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)

View Source
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.

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) Enum

func (CustomerImportance) EnumDescriptor deprecated

func (CustomerImportance) EnumDescriptor() ([]byte, []int)

Deprecated: Use CustomerImportance.Descriptor instead.

func (CustomerImportance) Number

func (CustomerImportance) String

func (x CustomerImportance) String() string

func (CustomerImportance) Type

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

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

Cause function returns cause value.

func (CustomerListResponseValidationError) Error

Error satisfies the builtin error interface

func (CustomerListResponseValidationError) ErrorName

ErrorName returns error name.

func (CustomerListResponseValidationError) Field

Field function returns field value.

func (CustomerListResponseValidationError) Key

Key function returns key value.

func (CustomerListResponseValidationError) Reason

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

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

Cause function returns cause value.

func (CustomerResponseValidationError) Error

Error satisfies the builtin error interface

func (CustomerResponseValidationError) ErrorName

ErrorName returns error name.

func (CustomerResponseValidationError) Field

Field function returns field value.

func (CustomerResponseValidationError) Key

Key function returns key value.

func (CustomerResponseValidationError) Reason

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.

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 (*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

AllErrors returns a list of validation violation errors.

func (DeleteCustomerByIdRequestMultiError) Error

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

Cause function returns cause value.

func (DeleteCustomerByIdRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteCustomerByIdRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteCustomerByIdRequestValidationError) Field

Field function returns field value.

func (DeleteCustomerByIdRequestValidationError) Key

Key function returns key value.

func (DeleteCustomerByIdRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetCustomerByIdRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCustomerByIdRequestValidationError) ErrorName

ErrorName returns error name.

func (GetCustomerByIdRequestValidationError) Field

Field function returns field value.

func (GetCustomerByIdRequestValidationError) Key

Key function returns key value.

func (GetCustomerByIdRequestValidationError) Reason

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

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

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

Cause function returns cause value.

func (LogoutRequestValidationError) Error

Error satisfies the builtin error interface

func (LogoutRequestValidationError) ErrorName

func (e LogoutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRequestValidationError) Field

Field function returns field value.

func (LogoutRequestValidationError) Key

Key function returns key value.

func (LogoutRequestValidationError) Reason

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

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

Cause function returns cause value.

func (NewCustomerRequestValidationError) Error

Error satisfies the builtin error interface

func (NewCustomerRequestValidationError) ErrorName

ErrorName returns error name.

func (NewCustomerRequestValidationError) Field

Field function returns field value.

func (NewCustomerRequestValidationError) Key

Key function returns key value.

func (NewCustomerRequestValidationError) Reason

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

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

Cause function returns cause value.

func (NewUserResponseValidationError) Error

Error satisfies the builtin error interface

func (NewUserResponseValidationError) ErrorName

func (e NewUserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (NewUserResponseValidationError) Field

Field function returns field value.

func (NewUserResponseValidationError) Key

Key function returns key value.

func (NewUserResponseValidationError) Reason

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

Cause function returns cause value.

func (RefreshRequestValidationError) Error

Error satisfies the builtin error interface

func (RefreshRequestValidationError) ErrorName

func (e RefreshRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RefreshRequestValidationError) Field

Field function returns field value.

func (RefreshRequestValidationError) Key

Key function returns key value.

func (RefreshRequestValidationError) Reason

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

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

Cause function returns cause value.

func (SessionResponseValidationError) Error

Error satisfies the builtin error interface

func (SessionResponseValidationError) ErrorName

func (e SessionResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SessionResponseValidationError) Field

Field function returns field value.

func (SessionResponseValidationError) Key

Key function returns key value.

func (SessionResponseValidationError) Reason

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

Cause function returns cause value.

func (SignupRequestValidationError) Error

Error satisfies the builtin error interface

func (SignupRequestValidationError) ErrorName

func (e SignupRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SignupRequestValidationError) Field

Field function returns field value.

func (SignupRequestValidationError) Key

Key function returns key value.

func (SignupRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) Logout

func (UnimplementedAuthServiceServer) Refresh

func (UnimplementedAuthServiceServer) Signup

type UnimplementedCustomerServiceServer

type UnimplementedCustomerServiceServer struct {
}

UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCustomerServiceServer) Create

func (UnimplementedCustomerServiceServer) DeleteByID

func (UnimplementedCustomerServiceServer) GetAll

func (UnimplementedCustomerServiceServer) GetByID

func (UnimplementedCustomerServiceServer) Upsert

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

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

Cause function returns cause value.

func (UpdateCustomerRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCustomerRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCustomerRequestValidationError) Field

Field function returns field value.

func (UpdateCustomerRequestValidationError) Key

Key function returns key value.

func (UpdateCustomerRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL