Documentation ¶
Index ¶
- Variables
- func RegisterWalletServer(s grpc.ServiceRegistrar, srv WalletServer)
- type GetUserWalletRequest
- func (*GetUserWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserWalletRequest) GetUserId() string
- func (*GetUserWalletRequest) ProtoMessage()
- func (x *GetUserWalletRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserWalletRequest) Reset()
- func (x *GetUserWalletRequest) String() string
- type GetUserWalletResponse
- func (*GetUserWalletResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserWalletResponse) GetUserWallet() *UserWallet
- func (*GetUserWalletResponse) ProtoMessage()
- func (x *GetUserWalletResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserWalletResponse) Reset()
- func (x *GetUserWalletResponse) String() string
- type UnimplementedWalletServer
- type UnsafeWalletServer
- type UserWallet
- type WalletClient
- type WalletServer
Constants ¶
This section is empty.
Variables ¶
var File_wallet_wallet_proto protoreflect.FileDescriptor
var Wallet_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wallet.Wallet", HandlerType: (*WalletServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserWallet", Handler: _Wallet_GetUserWallet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wallet/wallet.proto", }
Wallet_ServiceDesc is the grpc.ServiceDesc for Wallet service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWalletServer ¶
func RegisterWalletServer(s grpc.ServiceRegistrar, srv WalletServer)
Types ¶
type GetUserWalletRequest ¶
type GetUserWalletRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserWalletRequest) Descriptor
deprecated
func (*GetUserWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserWalletRequest.ProtoReflect.Descriptor instead.
func (*GetUserWalletRequest) GetUserId ¶
func (x *GetUserWalletRequest) GetUserId() string
func (*GetUserWalletRequest) ProtoMessage ¶
func (*GetUserWalletRequest) ProtoMessage()
func (*GetUserWalletRequest) ProtoReflect ¶
func (x *GetUserWalletRequest) ProtoReflect() protoreflect.Message
func (*GetUserWalletRequest) Reset ¶
func (x *GetUserWalletRequest) Reset()
func (*GetUserWalletRequest) String ¶
func (x *GetUserWalletRequest) String() string
type GetUserWalletResponse ¶
type GetUserWalletResponse struct { UserWallet *UserWallet `protobuf:"bytes,1,opt,name=user_wallet,json=userWallet,proto3" json:"user_wallet,omitempty"` // contains filtered or unexported fields }
func (*GetUserWalletResponse) Descriptor
deprecated
func (*GetUserWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserWalletResponse.ProtoReflect.Descriptor instead.
func (*GetUserWalletResponse) GetUserWallet ¶
func (x *GetUserWalletResponse) GetUserWallet() *UserWallet
func (*GetUserWalletResponse) ProtoMessage ¶
func (*GetUserWalletResponse) ProtoMessage()
func (*GetUserWalletResponse) ProtoReflect ¶
func (x *GetUserWalletResponse) ProtoReflect() protoreflect.Message
func (*GetUserWalletResponse) Reset ¶
func (x *GetUserWalletResponse) Reset()
func (*GetUserWalletResponse) String ¶
func (x *GetUserWalletResponse) String() string
type UnimplementedWalletServer ¶
type UnimplementedWalletServer struct { }
UnimplementedWalletServer must be embedded to have forward compatible implementations.
func (UnimplementedWalletServer) GetUserWallet ¶
func (UnimplementedWalletServer) GetUserWallet(context.Context, *GetUserWalletRequest) (*GetUserWalletResponse, error)
type UnsafeWalletServer ¶
type UnsafeWalletServer interface {
// contains filtered or unexported methods
}
UnsafeWalletServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WalletServer will result in compilation errors.
type UserWallet ¶
type UserWallet struct { CoinBalance int64 `protobuf:"varint,1,opt,name=coin_balance,json=coinBalance,proto3" json:"coin_balance,omitempty"` // contains filtered or unexported fields }
func (*UserWallet) Descriptor
deprecated
func (*UserWallet) Descriptor() ([]byte, []int)
Deprecated: Use UserWallet.ProtoReflect.Descriptor instead.
func (*UserWallet) GetCoinBalance ¶
func (x *UserWallet) GetCoinBalance() int64
func (*UserWallet) ProtoMessage ¶
func (*UserWallet) ProtoMessage()
func (*UserWallet) ProtoReflect ¶
func (x *UserWallet) ProtoReflect() protoreflect.Message
func (*UserWallet) Reset ¶
func (x *UserWallet) Reset()
func (*UserWallet) String ¶
func (x *UserWallet) String() string
type WalletClient ¶
type WalletClient interface {
GetUserWallet(ctx context.Context, in *GetUserWalletRequest, opts ...grpc.CallOption) (*GetUserWalletResponse, error)
}
WalletClient is the client API for Wallet 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 NewWalletClient ¶
func NewWalletClient(cc grpc.ClientConnInterface) WalletClient
type WalletServer ¶
type WalletServer interface { GetUserWallet(context.Context, *GetUserWalletRequest) (*GetUserWalletResponse, error) // contains filtered or unexported methods }
WalletServer is the server API for Wallet service. All implementations must embed UnimplementedWalletServer for forward compatibility