wallet

package
v0.0.0-...-588a488 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

Jump to

Keyboard shortcuts

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