Documentation ¶
Overview ¶
Package customerspb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCustomersServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCustomersServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CustomersServiceClient) error
- func RegisterCustomersServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCustomersServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CustomersServiceServer) error
- func RegisterCustomersServiceServer(s grpc.ServiceRegistrar, srv CustomersServiceServer)
- func Registrations(reg registry.Registry) error
- type AuthorizeCustomer
- func (*AuthorizeCustomer) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeCustomer) GetId() string
- func (*AuthorizeCustomer) Key() string
- func (*AuthorizeCustomer) ProtoMessage()
- func (x *AuthorizeCustomer) ProtoReflect() protoreflect.Message
- func (x *AuthorizeCustomer) Reset()
- func (x *AuthorizeCustomer) String() string
- type AuthorizeCustomerRequest
- func (*AuthorizeCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeCustomerRequest) GetId() string
- func (*AuthorizeCustomerRequest) ProtoMessage()
- func (x *AuthorizeCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeCustomerRequest) Reset()
- func (x *AuthorizeCustomerRequest) String() string
- type AuthorizeCustomerResponse
- type ChangeSmsNumberRequest
- func (*ChangeSmsNumberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeSmsNumberRequest) GetId() string
- func (x *ChangeSmsNumberRequest) GetSmsNumber() string
- func (*ChangeSmsNumberRequest) ProtoMessage()
- func (x *ChangeSmsNumberRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeSmsNumberRequest) Reset()
- func (x *ChangeSmsNumberRequest) String() string
- type ChangeSmsNumberResponse
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetEnabled() bool
- func (x *Customer) GetId() string
- func (x *Customer) GetName() string
- func (x *Customer) GetSmsNumber() string
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (x *Customer) String() string
- type CustomerDisabled
- func (*CustomerDisabled) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerDisabled) GetId() string
- func (*CustomerDisabled) Key() string
- func (*CustomerDisabled) ProtoMessage()
- func (x *CustomerDisabled) ProtoReflect() protoreflect.Message
- func (x *CustomerDisabled) Reset()
- func (x *CustomerDisabled) String() string
- type CustomerEnabled
- func (*CustomerEnabled) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerEnabled) GetId() string
- func (*CustomerEnabled) Key() string
- func (*CustomerEnabled) ProtoMessage()
- func (x *CustomerEnabled) ProtoReflect() protoreflect.Message
- func (x *CustomerEnabled) Reset()
- func (x *CustomerEnabled) String() string
- type CustomerRegistered
- func (*CustomerRegistered) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerRegistered) GetId() string
- func (x *CustomerRegistered) GetName() string
- func (x *CustomerRegistered) GetSmsNumber() string
- func (*CustomerRegistered) Key() string
- func (*CustomerRegistered) ProtoMessage()
- func (x *CustomerRegistered) ProtoReflect() protoreflect.Message
- func (x *CustomerRegistered) Reset()
- func (x *CustomerRegistered) String() string
- type CustomerSmsChanged
- func (*CustomerSmsChanged) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerSmsChanged) GetId() string
- func (x *CustomerSmsChanged) GetSmsNumber() string
- func (*CustomerSmsChanged) Key() string
- func (*CustomerSmsChanged) ProtoMessage()
- func (x *CustomerSmsChanged) ProtoReflect() protoreflect.Message
- func (x *CustomerSmsChanged) Reset()
- func (x *CustomerSmsChanged) String() string
- type CustomersServiceClient
- type CustomersServiceServer
- type DisableCustomerRequest
- func (*DisableCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisableCustomerRequest) GetId() string
- func (*DisableCustomerRequest) ProtoMessage()
- func (x *DisableCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *DisableCustomerRequest) Reset()
- func (x *DisableCustomerRequest) String() string
- type DisableCustomerResponse
- type EnableCustomerRequest
- func (*EnableCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnableCustomerRequest) GetId() string
- func (*EnableCustomerRequest) ProtoMessage()
- func (x *EnableCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *EnableCustomerRequest) Reset()
- func (x *EnableCustomerRequest) String() string
- type EnableCustomerResponse
- type GetCustomerRequest
- type GetCustomerResponse
- func (*GetCustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerResponse) GetCustomer() *Customer
- func (*GetCustomerResponse) ProtoMessage()
- func (x *GetCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *GetCustomerResponse) Reset()
- func (x *GetCustomerResponse) String() string
- type MockCustomersServiceClient
- func (_m *MockCustomersServiceClient) AuthorizeCustomer(ctx context.Context, in *AuthorizeCustomerRequest, opts ...grpc.CallOption) (*AuthorizeCustomerResponse, error)
- func (_m *MockCustomersServiceClient) ChangeSmsNumber(ctx context.Context, in *ChangeSmsNumberRequest, opts ...grpc.CallOption) (*ChangeSmsNumberResponse, error)
- func (_m *MockCustomersServiceClient) DisableCustomer(ctx context.Context, in *DisableCustomerRequest, opts ...grpc.CallOption) (*DisableCustomerResponse, error)
- func (_m *MockCustomersServiceClient) EnableCustomer(ctx context.Context, in *EnableCustomerRequest, opts ...grpc.CallOption) (*EnableCustomerResponse, error)
- func (_m *MockCustomersServiceClient) GetCustomer(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*GetCustomerResponse, error)
- func (_m *MockCustomersServiceClient) RegisterCustomer(ctx context.Context, in *RegisterCustomerRequest, opts ...grpc.CallOption) (*RegisterCustomerResponse, error)
- type MockCustomersServiceServer
- func (_m *MockCustomersServiceServer) AuthorizeCustomer(_a0 context.Context, _a1 *AuthorizeCustomerRequest) (*AuthorizeCustomerResponse, error)
- func (_m *MockCustomersServiceServer) ChangeSmsNumber(_a0 context.Context, _a1 *ChangeSmsNumberRequest) (*ChangeSmsNumberResponse, error)
- func (_m *MockCustomersServiceServer) DisableCustomer(_a0 context.Context, _a1 *DisableCustomerRequest) (*DisableCustomerResponse, error)
- func (_m *MockCustomersServiceServer) EnableCustomer(_a0 context.Context, _a1 *EnableCustomerRequest) (*EnableCustomerResponse, error)
- func (_m *MockCustomersServiceServer) GetCustomer(_a0 context.Context, _a1 *GetCustomerRequest) (*GetCustomerResponse, error)
- func (_m *MockCustomersServiceServer) RegisterCustomer(_a0 context.Context, _a1 *RegisterCustomerRequest) (*RegisterCustomerResponse, error)
- type MockUnsafeCustomersServiceServer
- type RegisterCustomerRequest
- func (*RegisterCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterCustomerRequest) GetName() string
- func (x *RegisterCustomerRequest) GetSmsNumber() string
- func (*RegisterCustomerRequest) ProtoMessage()
- func (x *RegisterCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterCustomerRequest) Reset()
- func (x *RegisterCustomerRequest) String() string
- type RegisterCustomerResponse
- func (*RegisterCustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterCustomerResponse) GetId() string
- func (*RegisterCustomerResponse) ProtoMessage()
- func (x *RegisterCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterCustomerResponse) Reset()
- func (x *RegisterCustomerResponse) String() string
- type UnimplementedCustomersServiceServer
- func (UnimplementedCustomersServiceServer) AuthorizeCustomer(context.Context, *AuthorizeCustomerRequest) (*AuthorizeCustomerResponse, error)
- func (UnimplementedCustomersServiceServer) ChangeSmsNumber(context.Context, *ChangeSmsNumberRequest) (*ChangeSmsNumberResponse, error)
- func (UnimplementedCustomersServiceServer) DisableCustomer(context.Context, *DisableCustomerRequest) (*DisableCustomerResponse, error)
- func (UnimplementedCustomersServiceServer) EnableCustomer(context.Context, *EnableCustomerRequest) (*EnableCustomerResponse, error)
- func (UnimplementedCustomersServiceServer) GetCustomer(context.Context, *GetCustomerRequest) (*GetCustomerResponse, error)
- func (UnimplementedCustomersServiceServer) RegisterCustomer(context.Context, *RegisterCustomerRequest) (*RegisterCustomerResponse, error)
- type UnsafeCustomersServiceServer
Constants ¶
const ( CustomerAggregateChannel = "intellimall.customers.events.Customer" CustomerRegisteredEvent = "customersapi.CustomerRegistered" CustomerSmsChangedEvent = "customersapi.CustomerSmsChanged" CustomerEnabledEvent = "customersapi.CustomerEnabled" CustomerDisabledEvent = "customersapi.CustomerDisabled" CommandChannel = "intellimall.customers.commands" AuthorizeCustomerCommand = "customersapi.AuthorizeCustomer" )
Variables ¶
var CustomersService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "customerspb.CustomersService", HandlerType: (*CustomersServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterCustomer", Handler: _CustomersService_RegisterCustomer_Handler, }, { MethodName: "EnableCustomer", Handler: _CustomersService_EnableCustomer_Handler, }, { MethodName: "DisableCustomer", Handler: _CustomersService_DisableCustomer_Handler, }, { MethodName: "ChangeSmsNumber", Handler: _CustomersService_ChangeSmsNumber_Handler, }, { MethodName: "AuthorizeCustomer", Handler: _CustomersService_AuthorizeCustomer_Handler, }, { MethodName: "GetCustomer", Handler: _CustomersService_GetCustomer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "customerspb/api.proto", }
CustomersService_ServiceDesc is the grpc.ServiceDesc for CustomersService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_customerspb_api_proto protoreflect.FileDescriptor
var File_customerspb_messages_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCustomersServiceHandler ¶
func RegisterCustomersServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCustomersServiceHandler registers the http handlers for service CustomersService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCustomersServiceHandlerClient ¶
func RegisterCustomersServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CustomersServiceClient) error
RegisterCustomersServiceHandlerClient registers the http handlers for service CustomersService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CustomersServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CustomersServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CustomersServiceClient" to call the correct interceptors.
func RegisterCustomersServiceHandlerFromEndpoint ¶
func RegisterCustomersServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCustomersServiceHandlerFromEndpoint is same as RegisterCustomersServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCustomersServiceHandlerServer ¶
func RegisterCustomersServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CustomersServiceServer) error
RegisterCustomersServiceHandlerServer registers the http handlers for service CustomersService to "mux". UnaryRPC :call CustomersServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCustomersServiceHandlerFromEndpoint instead.
func RegisterCustomersServiceServer ¶
func RegisterCustomersServiceServer(s grpc.ServiceRegistrar, srv CustomersServiceServer)
func Registrations ¶
Types ¶
type AuthorizeCustomer ¶
type AuthorizeCustomer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeCustomer) Descriptor
deprecated
func (*AuthorizeCustomer) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeCustomer.ProtoReflect.Descriptor instead.
func (*AuthorizeCustomer) GetId ¶
func (x *AuthorizeCustomer) GetId() string
func (*AuthorizeCustomer) Key ¶
func (*AuthorizeCustomer) Key() string
func (*AuthorizeCustomer) ProtoMessage ¶
func (*AuthorizeCustomer) ProtoMessage()
func (*AuthorizeCustomer) ProtoReflect ¶
func (x *AuthorizeCustomer) ProtoReflect() protoreflect.Message
func (*AuthorizeCustomer) Reset ¶
func (x *AuthorizeCustomer) Reset()
func (*AuthorizeCustomer) String ¶
func (x *AuthorizeCustomer) String() string
type AuthorizeCustomerRequest ¶
type AuthorizeCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeCustomerRequest) Descriptor
deprecated
func (*AuthorizeCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeCustomerRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeCustomerRequest) GetId ¶
func (x *AuthorizeCustomerRequest) GetId() string
func (*AuthorizeCustomerRequest) ProtoMessage ¶
func (*AuthorizeCustomerRequest) ProtoMessage()
func (*AuthorizeCustomerRequest) ProtoReflect ¶
func (x *AuthorizeCustomerRequest) ProtoReflect() protoreflect.Message
func (*AuthorizeCustomerRequest) Reset ¶
func (x *AuthorizeCustomerRequest) Reset()
func (*AuthorizeCustomerRequest) String ¶
func (x *AuthorizeCustomerRequest) String() string
type AuthorizeCustomerResponse ¶
type AuthorizeCustomerResponse struct {
// contains filtered or unexported fields
}
func (*AuthorizeCustomerResponse) Descriptor
deprecated
func (*AuthorizeCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeCustomerResponse.ProtoReflect.Descriptor instead.
func (*AuthorizeCustomerResponse) ProtoMessage ¶
func (*AuthorizeCustomerResponse) ProtoMessage()
func (*AuthorizeCustomerResponse) ProtoReflect ¶
func (x *AuthorizeCustomerResponse) ProtoReflect() protoreflect.Message
func (*AuthorizeCustomerResponse) Reset ¶
func (x *AuthorizeCustomerResponse) Reset()
func (*AuthorizeCustomerResponse) String ¶
func (x *AuthorizeCustomerResponse) String() string
type ChangeSmsNumberRequest ¶
type ChangeSmsNumberRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SmsNumber string `protobuf:"bytes,2,opt,name=sms_number,json=smsNumber,proto3" json:"sms_number,omitempty"` // contains filtered or unexported fields }
func (*ChangeSmsNumberRequest) Descriptor
deprecated
func (*ChangeSmsNumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeSmsNumberRequest.ProtoReflect.Descriptor instead.
func (*ChangeSmsNumberRequest) GetId ¶
func (x *ChangeSmsNumberRequest) GetId() string
func (*ChangeSmsNumberRequest) GetSmsNumber ¶
func (x *ChangeSmsNumberRequest) GetSmsNumber() string
func (*ChangeSmsNumberRequest) ProtoMessage ¶
func (*ChangeSmsNumberRequest) ProtoMessage()
func (*ChangeSmsNumberRequest) ProtoReflect ¶
func (x *ChangeSmsNumberRequest) ProtoReflect() protoreflect.Message
func (*ChangeSmsNumberRequest) Reset ¶
func (x *ChangeSmsNumberRequest) Reset()
func (*ChangeSmsNumberRequest) String ¶
func (x *ChangeSmsNumberRequest) String() string
type ChangeSmsNumberResponse ¶
type ChangeSmsNumberResponse struct {
// contains filtered or unexported fields
}
func (*ChangeSmsNumberResponse) Descriptor
deprecated
func (*ChangeSmsNumberResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangeSmsNumberResponse.ProtoReflect.Descriptor instead.
func (*ChangeSmsNumberResponse) ProtoMessage ¶
func (*ChangeSmsNumberResponse) ProtoMessage()
func (*ChangeSmsNumberResponse) ProtoReflect ¶
func (x *ChangeSmsNumberResponse) ProtoReflect() protoreflect.Message
func (*ChangeSmsNumberResponse) Reset ¶
func (x *ChangeSmsNumberResponse) Reset()
func (*ChangeSmsNumberResponse) String ¶
func (x *ChangeSmsNumberResponse) String() string
type Customer ¶
type Customer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` SmsNumber string `protobuf:"bytes,3,opt,name=sms_number,json=smsNumber,proto3" json:"sms_number,omitempty"` Enabled bool `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"` // contains filtered or unexported fields }
func (*Customer) Descriptor
deprecated
func (*Customer) GetEnabled ¶
func (*Customer) GetSmsNumber ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type CustomerDisabled ¶
type CustomerDisabled struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CustomerDisabled) Descriptor
deprecated
func (*CustomerDisabled) Descriptor() ([]byte, []int)
Deprecated: Use CustomerDisabled.ProtoReflect.Descriptor instead.
func (*CustomerDisabled) GetId ¶
func (x *CustomerDisabled) GetId() string
func (*CustomerDisabled) Key ¶
func (*CustomerDisabled) Key() string
func (*CustomerDisabled) ProtoMessage ¶
func (*CustomerDisabled) ProtoMessage()
func (*CustomerDisabled) ProtoReflect ¶
func (x *CustomerDisabled) ProtoReflect() protoreflect.Message
func (*CustomerDisabled) Reset ¶
func (x *CustomerDisabled) Reset()
func (*CustomerDisabled) String ¶
func (x *CustomerDisabled) String() string
type CustomerEnabled ¶
type CustomerEnabled struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CustomerEnabled) Descriptor
deprecated
func (*CustomerEnabled) Descriptor() ([]byte, []int)
Deprecated: Use CustomerEnabled.ProtoReflect.Descriptor instead.
func (*CustomerEnabled) GetId ¶
func (x *CustomerEnabled) GetId() string
func (*CustomerEnabled) Key ¶
func (*CustomerEnabled) Key() string
func (*CustomerEnabled) ProtoMessage ¶
func (*CustomerEnabled) ProtoMessage()
func (*CustomerEnabled) ProtoReflect ¶
func (x *CustomerEnabled) ProtoReflect() protoreflect.Message
func (*CustomerEnabled) Reset ¶
func (x *CustomerEnabled) Reset()
func (*CustomerEnabled) String ¶
func (x *CustomerEnabled) String() string
type CustomerRegistered ¶
type CustomerRegistered struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` SmsNumber string `protobuf:"bytes,3,opt,name=sms_number,json=smsNumber,proto3" json:"sms_number,omitempty"` // contains filtered or unexported fields }
func (*CustomerRegistered) Descriptor
deprecated
func (*CustomerRegistered) Descriptor() ([]byte, []int)
Deprecated: Use CustomerRegistered.ProtoReflect.Descriptor instead.
func (*CustomerRegistered) GetId ¶
func (x *CustomerRegistered) GetId() string
func (*CustomerRegistered) GetName ¶
func (x *CustomerRegistered) GetName() string
func (*CustomerRegistered) GetSmsNumber ¶
func (x *CustomerRegistered) GetSmsNumber() string
func (*CustomerRegistered) Key ¶
func (*CustomerRegistered) Key() string
func (*CustomerRegistered) ProtoMessage ¶
func (*CustomerRegistered) ProtoMessage()
func (*CustomerRegistered) ProtoReflect ¶
func (x *CustomerRegistered) ProtoReflect() protoreflect.Message
func (*CustomerRegistered) Reset ¶
func (x *CustomerRegistered) Reset()
func (*CustomerRegistered) String ¶
func (x *CustomerRegistered) String() string
type CustomerSmsChanged ¶
type CustomerSmsChanged struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SmsNumber string `protobuf:"bytes,2,opt,name=sms_number,json=smsNumber,proto3" json:"sms_number,omitempty"` // contains filtered or unexported fields }
func (*CustomerSmsChanged) Descriptor
deprecated
func (*CustomerSmsChanged) Descriptor() ([]byte, []int)
Deprecated: Use CustomerSmsChanged.ProtoReflect.Descriptor instead.
func (*CustomerSmsChanged) GetId ¶
func (x *CustomerSmsChanged) GetId() string
func (*CustomerSmsChanged) GetSmsNumber ¶
func (x *CustomerSmsChanged) GetSmsNumber() string
func (*CustomerSmsChanged) Key ¶
func (*CustomerSmsChanged) Key() string
func (*CustomerSmsChanged) ProtoMessage ¶
func (*CustomerSmsChanged) ProtoMessage()
func (*CustomerSmsChanged) ProtoReflect ¶
func (x *CustomerSmsChanged) ProtoReflect() protoreflect.Message
func (*CustomerSmsChanged) Reset ¶
func (x *CustomerSmsChanged) Reset()
func (*CustomerSmsChanged) String ¶
func (x *CustomerSmsChanged) String() string
type CustomersServiceClient ¶
type CustomersServiceClient interface { RegisterCustomer(ctx context.Context, in *RegisterCustomerRequest, opts ...grpc.CallOption) (*RegisterCustomerResponse, error) EnableCustomer(ctx context.Context, in *EnableCustomerRequest, opts ...grpc.CallOption) (*EnableCustomerResponse, error) DisableCustomer(ctx context.Context, in *DisableCustomerRequest, opts ...grpc.CallOption) (*DisableCustomerResponse, error) ChangeSmsNumber(ctx context.Context, in *ChangeSmsNumberRequest, opts ...grpc.CallOption) (*ChangeSmsNumberResponse, error) AuthorizeCustomer(ctx context.Context, in *AuthorizeCustomerRequest, opts ...grpc.CallOption) (*AuthorizeCustomerResponse, error) GetCustomer(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*GetCustomerResponse, error) }
CustomersServiceClient is the client API for CustomersService 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 NewCustomersServiceClient ¶
func NewCustomersServiceClient(cc grpc.ClientConnInterface) CustomersServiceClient
type CustomersServiceServer ¶
type CustomersServiceServer interface { RegisterCustomer(context.Context, *RegisterCustomerRequest) (*RegisterCustomerResponse, error) EnableCustomer(context.Context, *EnableCustomerRequest) (*EnableCustomerResponse, error) DisableCustomer(context.Context, *DisableCustomerRequest) (*DisableCustomerResponse, error) ChangeSmsNumber(context.Context, *ChangeSmsNumberRequest) (*ChangeSmsNumberResponse, error) AuthorizeCustomer(context.Context, *AuthorizeCustomerRequest) (*AuthorizeCustomerResponse, error) GetCustomer(context.Context, *GetCustomerRequest) (*GetCustomerResponse, error) // contains filtered or unexported methods }
CustomersServiceServer is the server API for CustomersService service. All implementations must embed UnimplementedCustomersServiceServer for forward compatibility
type DisableCustomerRequest ¶
type DisableCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DisableCustomerRequest) Descriptor
deprecated
func (*DisableCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisableCustomerRequest.ProtoReflect.Descriptor instead.
func (*DisableCustomerRequest) GetId ¶
func (x *DisableCustomerRequest) GetId() string
func (*DisableCustomerRequest) ProtoMessage ¶
func (*DisableCustomerRequest) ProtoMessage()
func (*DisableCustomerRequest) ProtoReflect ¶
func (x *DisableCustomerRequest) ProtoReflect() protoreflect.Message
func (*DisableCustomerRequest) Reset ¶
func (x *DisableCustomerRequest) Reset()
func (*DisableCustomerRequest) String ¶
func (x *DisableCustomerRequest) String() string
type DisableCustomerResponse ¶
type DisableCustomerResponse struct {
// contains filtered or unexported fields
}
func (*DisableCustomerResponse) Descriptor
deprecated
func (*DisableCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisableCustomerResponse.ProtoReflect.Descriptor instead.
func (*DisableCustomerResponse) ProtoMessage ¶
func (*DisableCustomerResponse) ProtoMessage()
func (*DisableCustomerResponse) ProtoReflect ¶
func (x *DisableCustomerResponse) ProtoReflect() protoreflect.Message
func (*DisableCustomerResponse) Reset ¶
func (x *DisableCustomerResponse) Reset()
func (*DisableCustomerResponse) String ¶
func (x *DisableCustomerResponse) String() string
type EnableCustomerRequest ¶
type EnableCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*EnableCustomerRequest) Descriptor
deprecated
func (*EnableCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnableCustomerRequest.ProtoReflect.Descriptor instead.
func (*EnableCustomerRequest) GetId ¶
func (x *EnableCustomerRequest) GetId() string
func (*EnableCustomerRequest) ProtoMessage ¶
func (*EnableCustomerRequest) ProtoMessage()
func (*EnableCustomerRequest) ProtoReflect ¶
func (x *EnableCustomerRequest) ProtoReflect() protoreflect.Message
func (*EnableCustomerRequest) Reset ¶
func (x *EnableCustomerRequest) Reset()
func (*EnableCustomerRequest) String ¶
func (x *EnableCustomerRequest) String() string
type EnableCustomerResponse ¶
type EnableCustomerResponse struct {
// contains filtered or unexported fields
}
func (*EnableCustomerResponse) Descriptor
deprecated
func (*EnableCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnableCustomerResponse.ProtoReflect.Descriptor instead.
func (*EnableCustomerResponse) ProtoMessage ¶
func (*EnableCustomerResponse) ProtoMessage()
func (*EnableCustomerResponse) ProtoReflect ¶
func (x *EnableCustomerResponse) ProtoReflect() protoreflect.Message
func (*EnableCustomerResponse) Reset ¶
func (x *EnableCustomerResponse) Reset()
func (*EnableCustomerResponse) String ¶
func (x *EnableCustomerResponse) String() string
type GetCustomerRequest ¶
type GetCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerRequest) Descriptor
deprecated
func (*GetCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerRequest) GetId ¶
func (x *GetCustomerRequest) GetId() string
func (*GetCustomerRequest) ProtoMessage ¶
func (*GetCustomerRequest) ProtoMessage()
func (*GetCustomerRequest) ProtoReflect ¶
func (x *GetCustomerRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerRequest) Reset ¶
func (x *GetCustomerRequest) Reset()
func (*GetCustomerRequest) String ¶
func (x *GetCustomerRequest) String() string
type GetCustomerResponse ¶
type GetCustomerResponse struct { Customer *Customer `protobuf:"bytes,1,opt,name=customer,proto3" json:"customer,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerResponse) Descriptor
deprecated
func (*GetCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerResponse.ProtoReflect.Descriptor instead.
func (*GetCustomerResponse) GetCustomer ¶
func (x *GetCustomerResponse) GetCustomer() *Customer
func (*GetCustomerResponse) ProtoMessage ¶
func (*GetCustomerResponse) ProtoMessage()
func (*GetCustomerResponse) ProtoReflect ¶
func (x *GetCustomerResponse) ProtoReflect() protoreflect.Message
func (*GetCustomerResponse) Reset ¶
func (x *GetCustomerResponse) Reset()
func (*GetCustomerResponse) String ¶
func (x *GetCustomerResponse) String() string
type MockCustomersServiceClient ¶
MockCustomersServiceClient is an autogenerated mock type for the CustomersServiceClient type
func NewMockCustomersServiceClient ¶
func NewMockCustomersServiceClient(t mockConstructorTestingTNewMockCustomersServiceClient) *MockCustomersServiceClient
NewMockCustomersServiceClient creates a new instance of MockCustomersServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockCustomersServiceClient) AuthorizeCustomer ¶
func (_m *MockCustomersServiceClient) AuthorizeCustomer(ctx context.Context, in *AuthorizeCustomerRequest, opts ...grpc.CallOption) (*AuthorizeCustomerResponse, error)
AuthorizeCustomer provides a mock function with given fields: ctx, in, opts
func (*MockCustomersServiceClient) ChangeSmsNumber ¶
func (_m *MockCustomersServiceClient) ChangeSmsNumber(ctx context.Context, in *ChangeSmsNumberRequest, opts ...grpc.CallOption) (*ChangeSmsNumberResponse, error)
ChangeSmsNumber provides a mock function with given fields: ctx, in, opts
func (*MockCustomersServiceClient) DisableCustomer ¶
func (_m *MockCustomersServiceClient) DisableCustomer(ctx context.Context, in *DisableCustomerRequest, opts ...grpc.CallOption) (*DisableCustomerResponse, error)
DisableCustomer provides a mock function with given fields: ctx, in, opts
func (*MockCustomersServiceClient) EnableCustomer ¶
func (_m *MockCustomersServiceClient) EnableCustomer(ctx context.Context, in *EnableCustomerRequest, opts ...grpc.CallOption) (*EnableCustomerResponse, error)
EnableCustomer provides a mock function with given fields: ctx, in, opts
func (*MockCustomersServiceClient) GetCustomer ¶
func (_m *MockCustomersServiceClient) GetCustomer(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*GetCustomerResponse, error)
GetCustomer provides a mock function with given fields: ctx, in, opts
func (*MockCustomersServiceClient) RegisterCustomer ¶
func (_m *MockCustomersServiceClient) RegisterCustomer(ctx context.Context, in *RegisterCustomerRequest, opts ...grpc.CallOption) (*RegisterCustomerResponse, error)
RegisterCustomer provides a mock function with given fields: ctx, in, opts
type MockCustomersServiceServer ¶
MockCustomersServiceServer is an autogenerated mock type for the CustomersServiceServer type
func NewMockCustomersServiceServer ¶
func NewMockCustomersServiceServer(t mockConstructorTestingTNewMockCustomersServiceServer) *MockCustomersServiceServer
NewMockCustomersServiceServer creates a new instance of MockCustomersServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockCustomersServiceServer) AuthorizeCustomer ¶
func (_m *MockCustomersServiceServer) AuthorizeCustomer(_a0 context.Context, _a1 *AuthorizeCustomerRequest) (*AuthorizeCustomerResponse, error)
AuthorizeCustomer provides a mock function with given fields: _a0, _a1
func (*MockCustomersServiceServer) ChangeSmsNumber ¶
func (_m *MockCustomersServiceServer) ChangeSmsNumber(_a0 context.Context, _a1 *ChangeSmsNumberRequest) (*ChangeSmsNumberResponse, error)
ChangeSmsNumber provides a mock function with given fields: _a0, _a1
func (*MockCustomersServiceServer) DisableCustomer ¶
func (_m *MockCustomersServiceServer) DisableCustomer(_a0 context.Context, _a1 *DisableCustomerRequest) (*DisableCustomerResponse, error)
DisableCustomer provides a mock function with given fields: _a0, _a1
func (*MockCustomersServiceServer) EnableCustomer ¶
func (_m *MockCustomersServiceServer) EnableCustomer(_a0 context.Context, _a1 *EnableCustomerRequest) (*EnableCustomerResponse, error)
EnableCustomer provides a mock function with given fields: _a0, _a1
func (*MockCustomersServiceServer) GetCustomer ¶
func (_m *MockCustomersServiceServer) GetCustomer(_a0 context.Context, _a1 *GetCustomerRequest) (*GetCustomerResponse, error)
GetCustomer provides a mock function with given fields: _a0, _a1
func (*MockCustomersServiceServer) RegisterCustomer ¶
func (_m *MockCustomersServiceServer) RegisterCustomer(_a0 context.Context, _a1 *RegisterCustomerRequest) (*RegisterCustomerResponse, error)
RegisterCustomer provides a mock function with given fields: _a0, _a1
type MockUnsafeCustomersServiceServer ¶
MockUnsafeCustomersServiceServer is an autogenerated mock type for the UnsafeCustomersServiceServer type
func NewMockUnsafeCustomersServiceServer ¶
func NewMockUnsafeCustomersServiceServer(t mockConstructorTestingTNewMockUnsafeCustomersServiceServer) *MockUnsafeCustomersServiceServer
NewMockUnsafeCustomersServiceServer creates a new instance of MockUnsafeCustomersServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type RegisterCustomerRequest ¶
type RegisterCustomerRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` SmsNumber string `protobuf:"bytes,2,opt,name=sms_number,json=smsNumber,proto3" json:"sms_number,omitempty"` // contains filtered or unexported fields }
func (*RegisterCustomerRequest) Descriptor
deprecated
func (*RegisterCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterCustomerRequest.ProtoReflect.Descriptor instead.
func (*RegisterCustomerRequest) GetName ¶
func (x *RegisterCustomerRequest) GetName() string
func (*RegisterCustomerRequest) GetSmsNumber ¶
func (x *RegisterCustomerRequest) GetSmsNumber() string
func (*RegisterCustomerRequest) ProtoMessage ¶
func (*RegisterCustomerRequest) ProtoMessage()
func (*RegisterCustomerRequest) ProtoReflect ¶
func (x *RegisterCustomerRequest) ProtoReflect() protoreflect.Message
func (*RegisterCustomerRequest) Reset ¶
func (x *RegisterCustomerRequest) Reset()
func (*RegisterCustomerRequest) String ¶
func (x *RegisterCustomerRequest) String() string
type RegisterCustomerResponse ¶
type RegisterCustomerResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RegisterCustomerResponse) Descriptor
deprecated
func (*RegisterCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterCustomerResponse.ProtoReflect.Descriptor instead.
func (*RegisterCustomerResponse) GetId ¶
func (x *RegisterCustomerResponse) GetId() string
func (*RegisterCustomerResponse) ProtoMessage ¶
func (*RegisterCustomerResponse) ProtoMessage()
func (*RegisterCustomerResponse) ProtoReflect ¶
func (x *RegisterCustomerResponse) ProtoReflect() protoreflect.Message
func (*RegisterCustomerResponse) Reset ¶
func (x *RegisterCustomerResponse) Reset()
func (*RegisterCustomerResponse) String ¶
func (x *RegisterCustomerResponse) String() string
type UnimplementedCustomersServiceServer ¶
type UnimplementedCustomersServiceServer struct { }
UnimplementedCustomersServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomersServiceServer) AuthorizeCustomer ¶
func (UnimplementedCustomersServiceServer) AuthorizeCustomer(context.Context, *AuthorizeCustomerRequest) (*AuthorizeCustomerResponse, error)
func (UnimplementedCustomersServiceServer) ChangeSmsNumber ¶
func (UnimplementedCustomersServiceServer) ChangeSmsNumber(context.Context, *ChangeSmsNumberRequest) (*ChangeSmsNumberResponse, error)
func (UnimplementedCustomersServiceServer) DisableCustomer ¶
func (UnimplementedCustomersServiceServer) DisableCustomer(context.Context, *DisableCustomerRequest) (*DisableCustomerResponse, error)
func (UnimplementedCustomersServiceServer) EnableCustomer ¶
func (UnimplementedCustomersServiceServer) EnableCustomer(context.Context, *EnableCustomerRequest) (*EnableCustomerResponse, error)
func (UnimplementedCustomersServiceServer) GetCustomer ¶
func (UnimplementedCustomersServiceServer) GetCustomer(context.Context, *GetCustomerRequest) (*GetCustomerResponse, error)
func (UnimplementedCustomersServiceServer) RegisterCustomer ¶
func (UnimplementedCustomersServiceServer) RegisterCustomer(context.Context, *RegisterCustomerRequest) (*RegisterCustomerResponse, error)
type UnsafeCustomersServiceServer ¶
type UnsafeCustomersServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCustomersServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CustomersServiceServer will result in compilation errors.