pb

package
v0.0.0-...-4d72460 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoyaltyService_CreateLoyaltyBalance_FullMethodName = "/loyalty.LoyaltyService/CreateLoyaltyBalance"
)

Variables

View Source
var File_loyalty_service_proto protoreflect.FileDescriptor
View Source
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 (*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 (*CreateLoyaltyBalanceResponse) Reset

func (x *CreateLoyaltyBalanceResponse) Reset()

func (*CreateLoyaltyBalanceResponse) 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.

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.

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.

Jump to

Keyboard shortcuts

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