users

package
v0.0.0-...-56ef6d5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_users_proto protoreflect.FileDescriptor
View Source
var UsersService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "users.UsersService",
	HandlerType: (*UsersServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTrainingBalance",
			Handler:    _UsersService_GetTrainingBalance_Handler,
		},
		{
			MethodName: "UpdateTrainingBalance",
			Handler:    _UsersService_UpdateTrainingBalance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "users.proto",
}

UsersService_ServiceDesc is the grpc.ServiceDesc for UsersService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUsersServiceServer

func RegisterUsersServiceServer(s grpc.ServiceRegistrar, srv UsersServiceServer)

Types

type GetTrainingBalanceRequest

type GetTrainingBalanceRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTrainingBalanceRequest) Descriptor deprecated

func (*GetTrainingBalanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTrainingBalanceRequest.ProtoReflect.Descriptor instead.

func (*GetTrainingBalanceRequest) GetUserId

func (x *GetTrainingBalanceRequest) GetUserId() string

func (*GetTrainingBalanceRequest) ProtoMessage

func (*GetTrainingBalanceRequest) ProtoMessage()

func (*GetTrainingBalanceRequest) ProtoReflect

func (*GetTrainingBalanceRequest) Reset

func (x *GetTrainingBalanceRequest) Reset()

func (*GetTrainingBalanceRequest) String

func (x *GetTrainingBalanceRequest) String() string

type GetTrainingBalanceResponse

type GetTrainingBalanceResponse struct {
	Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTrainingBalanceResponse) Descriptor deprecated

func (*GetTrainingBalanceResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetTrainingBalanceResponse.ProtoReflect.Descriptor instead.

func (*GetTrainingBalanceResponse) GetAmount

func (x *GetTrainingBalanceResponse) GetAmount() int64

func (*GetTrainingBalanceResponse) ProtoMessage

func (*GetTrainingBalanceResponse) ProtoMessage()

func (*GetTrainingBalanceResponse) ProtoReflect

func (*GetTrainingBalanceResponse) Reset

func (x *GetTrainingBalanceResponse) Reset()

func (*GetTrainingBalanceResponse) String

func (x *GetTrainingBalanceResponse) String() string

type UnimplementedUsersServiceServer

type UnimplementedUsersServiceServer struct {
}

UnimplementedUsersServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUsersServiceServer) GetTrainingBalance

func (UnimplementedUsersServiceServer) UpdateTrainingBalance

type UnsafeUsersServiceServer

type UnsafeUsersServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUsersServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsersServiceServer will result in compilation errors.

type UpdateTrainingBalanceRequest

type UpdateTrainingBalanceRequest struct {
	UserId       string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AmountChange int64  `protobuf:"varint,2,opt,name=amount_change,json=amountChange,proto3" json:"amount_change,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTrainingBalanceRequest) Descriptor deprecated

func (*UpdateTrainingBalanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTrainingBalanceRequest.ProtoReflect.Descriptor instead.

func (*UpdateTrainingBalanceRequest) GetAmountChange

func (x *UpdateTrainingBalanceRequest) GetAmountChange() int64

func (*UpdateTrainingBalanceRequest) GetUserId

func (x *UpdateTrainingBalanceRequest) GetUserId() string

func (*UpdateTrainingBalanceRequest) ProtoMessage

func (*UpdateTrainingBalanceRequest) ProtoMessage()

func (*UpdateTrainingBalanceRequest) ProtoReflect

func (*UpdateTrainingBalanceRequest) Reset

func (x *UpdateTrainingBalanceRequest) Reset()

func (*UpdateTrainingBalanceRequest) String

type UsersServiceClient

type UsersServiceClient interface {
	GetTrainingBalance(ctx context.Context, in *GetTrainingBalanceRequest, opts ...grpc.CallOption) (*GetTrainingBalanceResponse, error)
	UpdateTrainingBalance(ctx context.Context, in *UpdateTrainingBalanceRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

UsersServiceClient is the client API for UsersService 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 UsersServiceServer

type UsersServiceServer interface {
	GetTrainingBalance(context.Context, *GetTrainingBalanceRequest) (*GetTrainingBalanceResponse, error)
	UpdateTrainingBalance(context.Context, *UpdateTrainingBalanceRequest) (*empty.Empty, error)
}

UsersServiceServer is the server API for UsersService service. All implementations should embed UnimplementedUsersServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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