interaction

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interactor

type Interactor interface {
	GetTransactionsForDebitor(ctx context.Context, query entities.TransactionQuery) ([]entities.Transaction, error)
	CreateTransaction(ctx context.Context, tran *entities.Transaction) (*entities.Transaction, error)
	CreateTransactionForOutstandingDues(ctx context.Context, debitorID int64, method entities.PaymentMethod) (*entities.Transaction, error)
	UpdateTransaction(ctx context.Context, tran *entities.Transaction) error
}

type RBACValidator

type RBACValidator struct {
	// contains filtered or unexported fields
}

func NewRBACValidator

func NewRBACValidator(ctx context.Context) (*RBACValidator, error)

func (*RBACValidator) IsAPITokenCall

func (i *RBACValidator) IsAPITokenCall() bool

func (*RBACValidator) IsAdmin

func (i *RBACValidator) IsAdmin() bool

func (*RBACValidator) IsRegisteredUser

func (i *RBACValidator) IsRegisteredUser() bool

func (*RBACValidator) Subject

func (i *RBACValidator) Subject() string

Jump to

Keyboard shortcuts

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