customerspb

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package customerspb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

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

View Source
var File_customerspb_api_proto protoreflect.FileDescriptor
View Source
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

func Registrations(reg registry.Registry) error

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetEnabled

func (x *Customer) GetEnabled() bool

func (*Customer) GetId

func (x *Customer) GetId() string

func (*Customer) GetName

func (x *Customer) GetName() string

func (*Customer) GetSmsNumber

func (x *Customer) GetSmsNumber() string

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

func (x *Customer) ProtoReflect() protoreflect.Message

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) String

func (x *Customer) String() string

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.

type CustomersServiceServer

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

type MockCustomersServiceClient struct {
	mock.Mock
}

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

AuthorizeCustomer provides a mock function with given fields: ctx, in, opts

func (*MockCustomersServiceClient) ChangeSmsNumber

ChangeSmsNumber provides a mock function with given fields: ctx, in, opts

func (*MockCustomersServiceClient) DisableCustomer

DisableCustomer provides a mock function with given fields: ctx, in, opts

func (*MockCustomersServiceClient) EnableCustomer

EnableCustomer provides a mock function with given fields: ctx, in, opts

func (*MockCustomersServiceClient) GetCustomer

GetCustomer provides a mock function with given fields: ctx, in, opts

func (*MockCustomersServiceClient) RegisterCustomer

RegisterCustomer provides a mock function with given fields: ctx, in, opts

type MockCustomersServiceServer

type MockCustomersServiceServer struct {
	mock.Mock
}

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

AuthorizeCustomer provides a mock function with given fields: _a0, _a1

func (*MockCustomersServiceServer) ChangeSmsNumber

ChangeSmsNumber provides a mock function with given fields: _a0, _a1

func (*MockCustomersServiceServer) DisableCustomer

DisableCustomer provides a mock function with given fields: _a0, _a1

func (*MockCustomersServiceServer) EnableCustomer

EnableCustomer provides a mock function with given fields: _a0, _a1

func (*MockCustomersServiceServer) GetCustomer

GetCustomer provides a mock function with given fields: _a0, _a1

func (*MockCustomersServiceServer) RegisterCustomer

RegisterCustomer provides a mock function with given fields: _a0, _a1

type MockUnsafeCustomersServiceServer

type MockUnsafeCustomersServiceServer struct {
	mock.Mock
}

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

func (UnimplementedCustomersServiceServer) DisableCustomer

func (UnimplementedCustomersServiceServer) EnableCustomer

func (UnimplementedCustomersServiceServer) GetCustomer

func (UnimplementedCustomersServiceServer) RegisterCustomer

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.

Jump to

Keyboard shortcuts

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