Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterLoyaltyServiceServer(s grpc.ServiceRegistrar, srv LoyaltyServiceServer)
- type CreateLoyaltyBalanceRequest
- func (*CreateLoyaltyBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLoyaltyBalanceRequest) GetUserId() int64
- func (*CreateLoyaltyBalanceRequest) ProtoMessage()
- func (x *CreateLoyaltyBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLoyaltyBalanceRequest) Reset()
- func (x *CreateLoyaltyBalanceRequest) String() string
- type CreateLoyaltyBalanceResponse
- func (*CreateLoyaltyBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLoyaltyBalanceResponse) GetErrorMessage() string
- func (x *CreateLoyaltyBalanceResponse) GetSuccess() bool
- func (*CreateLoyaltyBalanceResponse) ProtoMessage()
- func (x *CreateLoyaltyBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLoyaltyBalanceResponse) Reset()
- func (x *CreateLoyaltyBalanceResponse) String() string
- type LoyaltyServiceClient
- type LoyaltyServiceServer
- type UnimplementedLoyaltyServiceServer
- type UnsafeLoyaltyServiceServer
Constants ¶
const (
LoyaltyService_CreateLoyaltyBalance_FullMethodName = "/loyalty.LoyaltyService/CreateLoyaltyBalance"
)
Variables ¶
var File_loyalty_service_proto protoreflect.FileDescriptor
var LoyaltyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "loyalty.LoyaltyService", HandlerType: (*LoyaltyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateLoyaltyBalance", Handler: _LoyaltyService_CreateLoyaltyBalance_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "loyalty_service.proto", }
LoyaltyService_ServiceDesc is the grpc.ServiceDesc for LoyaltyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLoyaltyServiceServer ¶
func RegisterLoyaltyServiceServer(s grpc.ServiceRegistrar, srv LoyaltyServiceServer)
Types ¶
type CreateLoyaltyBalanceRequest ¶
type CreateLoyaltyBalanceRequest struct {
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// contains filtered or unexported fields
}
Запрос c user_id
func (*CreateLoyaltyBalanceRequest) Descriptor
deprecated
func (*CreateLoyaltyBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLoyaltyBalanceRequest.ProtoReflect.Descriptor instead.
func (*CreateLoyaltyBalanceRequest) GetUserId ¶
func (x *CreateLoyaltyBalanceRequest) GetUserId() int64
func (*CreateLoyaltyBalanceRequest) ProtoMessage ¶
func (*CreateLoyaltyBalanceRequest) ProtoMessage()
func (*CreateLoyaltyBalanceRequest) ProtoReflect ¶
func (x *CreateLoyaltyBalanceRequest) ProtoReflect() protoreflect.Message
func (*CreateLoyaltyBalanceRequest) Reset ¶
func (x *CreateLoyaltyBalanceRequest) Reset()
func (*CreateLoyaltyBalanceRequest) String ¶
func (x *CreateLoyaltyBalanceRequest) String() string
type CreateLoyaltyBalanceResponse ¶
type CreateLoyaltyBalanceResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*CreateLoyaltyBalanceResponse) Descriptor
deprecated
func (*CreateLoyaltyBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateLoyaltyBalanceResponse.ProtoReflect.Descriptor instead.
func (*CreateLoyaltyBalanceResponse) GetErrorMessage ¶
func (x *CreateLoyaltyBalanceResponse) GetErrorMessage() string
func (*CreateLoyaltyBalanceResponse) GetSuccess ¶
func (x *CreateLoyaltyBalanceResponse) GetSuccess() bool
func (*CreateLoyaltyBalanceResponse) ProtoMessage ¶
func (*CreateLoyaltyBalanceResponse) ProtoMessage()
func (*CreateLoyaltyBalanceResponse) ProtoReflect ¶
func (x *CreateLoyaltyBalanceResponse) ProtoReflect() protoreflect.Message
func (*CreateLoyaltyBalanceResponse) Reset ¶
func (x *CreateLoyaltyBalanceResponse) Reset()
func (*CreateLoyaltyBalanceResponse) String ¶
func (x *CreateLoyaltyBalanceResponse) String() string
type LoyaltyServiceClient ¶
type LoyaltyServiceClient interface {
CreateLoyaltyBalance(ctx context.Context, in *CreateLoyaltyBalanceRequest, opts ...grpc.CallOption) (*CreateLoyaltyBalanceResponse, error)
}
LoyaltyServiceClient is the client API for LoyaltyService 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 NewLoyaltyServiceClient ¶
func NewLoyaltyServiceClient(cc grpc.ClientConnInterface) LoyaltyServiceClient
type LoyaltyServiceServer ¶
type LoyaltyServiceServer interface {
CreateLoyaltyBalance(context.Context, *CreateLoyaltyBalanceRequest) (*CreateLoyaltyBalanceResponse, error)
// contains filtered or unexported methods
}
LoyaltyServiceServer is the server API for LoyaltyService service. All implementations must embed UnimplementedLoyaltyServiceServer for forward compatibility.
type UnimplementedLoyaltyServiceServer ¶
type UnimplementedLoyaltyServiceServer struct{}
UnimplementedLoyaltyServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedLoyaltyServiceServer) CreateLoyaltyBalance ¶
func (UnimplementedLoyaltyServiceServer) CreateLoyaltyBalance(context.Context, *CreateLoyaltyBalanceRequest) (*CreateLoyaltyBalanceResponse, error)
type UnsafeLoyaltyServiceServer ¶
type UnsafeLoyaltyServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLoyaltyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoyaltyServiceServer will result in compilation errors.