accounting

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultInterval time.Duration = 30 * time.Second
	DefaultDelay    time.Duration = 0 * time.Second
)

Variables

View Source
var (
	ErrProcessingWithdraw     = errors.New("Error Processing Withdraw")
	ErrProcessingCanceling    = errors.New("Error Processing Canceling")
	ErrProcessingWithdrawType = errors.New("Error Processing Withdraw Type")
)

Functions

func FetchCancelingOperations added in v0.0.5

func FetchCancelingOperations(ctx context.Context) ([]model.AccountOperation, error)

func FetchCreatedWithdraws added in v0.0.5

func FetchCreatedWithdraws(ctx context.Context) ([]model.WithdrawTarget, error)

func Models

func Models() []model.Model

func ProcessWithdraws added in v0.0.5

func ProcessWithdraws(ctx context.Context, withdraws []model.WithdrawTarget) error

Types

type Accounting

type Accounting int

func (*Accounting) Run

func (p *Accounting) Run(ctx context.Context, bankUser model.User)

Directories

Path Synopsis
cmd
accountmanager
simply push log entry to redis
simply push log entry to redis

Jump to

Keyboard shortcuts

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