Documentation ¶
Index ¶
- type AuthInterceptor
- type WalletHandler
- func (wh *WalletHandler) CreateAccount(ctx context.Context, req *pb.CreateAccountRequest) (*pb.CreateAccountResponse, error)
- func (wh *WalletHandler) CreateCard(ctx context.Context, req *pb.CreateCardRequest) (*pb.CreateCardResponse, error)
- func (wh *WalletHandler) CreateTransaction(ctx context.Context, req *pb.CreateTransactionRequest) (*pb.CreateTransactionResponse, error)
- func (wh *WalletHandler) CreateWallet(ctx context.Context, _ *pb.CreateWalletRequest) (*pb.CreateWalletResponse, error)
- func (wh *WalletHandler) DeleteAccount(ctx context.Context, req *pb.DeleteAccountRequest) (*pb.DeleteAccountResponse, error)
- func (wh *WalletHandler) DeleteCard(ctx context.Context, req *pb.DeleteCardRequest) (*pb.DeleteCardResponse, error)
- func (wh *WalletHandler) GetAccounts(ctx context.Context, req *pb.GetAccountsRequest) (*pb.GetAccountsResponse, error)
- func (wh *WalletHandler) GetCards(ctx context.Context, req *pb.GetCardsRequest) (*pb.GetCardsResponse, error)
- func (wh *WalletHandler) GetTransactionHistory(ctx context.Context, req *pb.GetTransactionHistoryRequest) (*pb.GetTransactionHistoryResponse, error)
- func (wh *WalletHandler) TransferRollback(ctx context.Context, req *pb.TransferRollbackRequest) (*pb.TransferRollbackResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor(url string, creds credentials.TransportCredentials) (*AuthInterceptor, error)
NewAuthInterceptor returns a new AuthInterceptor
func (*AuthInterceptor) Unary ¶
func (ai *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Unary returns a UnaryServerInterceptor that validates the access token and set the user id in the context
type WalletHandler ¶
type WalletHandler struct { pb.UnimplementedWalletServiceServer // contains filtered or unexported fields }
func NewWalletHandler ¶
func NewWalletHandler(u *application.UseCases) *WalletHandler
func (*WalletHandler) CreateAccount ¶
func (wh *WalletHandler) CreateAccount(ctx context.Context, req *pb.CreateAccountRequest) (*pb.CreateAccountResponse, error)
func (*WalletHandler) CreateCard ¶
func (wh *WalletHandler) CreateCard(ctx context.Context, req *pb.CreateCardRequest) (*pb.CreateCardResponse, error)
func (*WalletHandler) CreateTransaction ¶
func (wh *WalletHandler) CreateTransaction(ctx context.Context, req *pb.CreateTransactionRequest) (*pb.CreateTransactionResponse, error)
func (*WalletHandler) CreateWallet ¶
func (wh *WalletHandler) CreateWallet(ctx context.Context, _ *pb.CreateWalletRequest) (*pb.CreateWalletResponse, error)
func (*WalletHandler) DeleteAccount ¶
func (wh *WalletHandler) DeleteAccount(ctx context.Context, req *pb.DeleteAccountRequest) (*pb.DeleteAccountResponse, error)
func (*WalletHandler) DeleteCard ¶
func (wh *WalletHandler) DeleteCard(ctx context.Context, req *pb.DeleteCardRequest) (*pb.DeleteCardResponse, error)
func (*WalletHandler) GetAccounts ¶
func (wh *WalletHandler) GetAccounts(ctx context.Context, req *pb.GetAccountsRequest) (*pb.GetAccountsResponse, error)
func (*WalletHandler) GetCards ¶
func (wh *WalletHandler) GetCards(ctx context.Context, req *pb.GetCardsRequest) (*pb.GetCardsResponse, error)
func (*WalletHandler) GetTransactionHistory ¶
func (wh *WalletHandler) GetTransactionHistory(ctx context.Context, req *pb.GetTransactionHistoryRequest) (*pb.GetTransactionHistoryResponse, error)
func (*WalletHandler) TransferRollback ¶
func (wh *WalletHandler) TransferRollback(ctx context.Context, req *pb.TransferRollbackRequest) (*pb.TransferRollbackResponse, error)
Click to show internal directories.
Click to hide internal directories.