MCPcopy Create free account

hub / github.com/claygod/transaction / functions

Functions107 in github.com/claygod/transaction

↓ 50 callersMethodcontext
* context - add context to the log */
logger.go:27
↓ 47 callersMethodBegin
* Begin - a new transaction is created and returned. The application stops for the duration of this operation. */
core_public.go:338
↓ 44 callersMethodEnd
* End - complete the data preparation and proceed with the transaction. Returned codes: ErrCodeUnitNotExist // unit not exist ErrCodeTransactionC
transaction_public.go:54
↓ 43 callersMethodDebit
* Debit - add debit to transaction. Input variables: customer - ID account - account string code count - number (type "uint64" for "less-zero" saf
transaction_public.go:24
↓ 36 callersMethodAddUnit
* AddUnit - adding a new unit. Two units with the same identifier can not exist. Returned codes: ErrCodeCoreCatch // not obtained permission ErrCod
core_public.go:45
↓ 32 callersMethodStart
* Start - start the application. Only after the start you can perform transactions. If the launch was successful, or the application is already runnin
core_public.go:174
↓ 29 callersFunctionNew
* New - create new core */
core_public.go:29
↓ 27 callersMethodgetAccount
* getAccount - take account by key. If there is no such account, it will be created (with zero balance). */
unit.go:32
↓ 23 callersFunctionlog
* log - return new logger */
logger.go:20
↓ 23 callersMethodsend
()
logger.go:33
↓ 22 callersMethodaddition
* addition - add to the balance the input variable. If the result of adding the balance and the input variable is less than zero, the balance does not
account.go:41
↓ 15 callersMethodgetUnit
(id int64)
storage.go:39
↓ 15 callersFunctionnewAccount
* newAccount - create new account. */
account.go:28
↓ 14 callersMethodCredit
* Credit - add credit to transaction. Input variables: customer - ID account - account string code count - number (type "uint64" for "less-zero" s
transaction_public.go:38
↓ 10 callersMethodaddUnit
(id int64)
storage.go:34
↓ 10 callersMethodtotal
* total - current balance of all accounts. At the time of the formation of the answer will be a lock. */
unit.go:53
↓ 9 callersFunctionnewUnit
* newUnit - create new Unit. */
unit.go:22
↓ 9 callersMethodstart
* start - start all accounts. Returns a list of not starting accounts. */
unit.go:152
↓ 9 callersMethodstop
* stop - stop all accounts. Returns a list of non-stopped accounts. */
unit.go:168
↓ 8 callersMethodStop
* Stop - stop the application. The new transactions will not start. Old transactions are executed, and after the end of all running transactions, the
core_public.go:193
↓ 7 callersMethodTotalAccount
* TotalAccount - account balance If an account has not been created before, it will be created with a zero balance. Returned codes: ErrCodeCoreCatch
core_public.go:148
↓ 7 callersMethodcatch
* catch - get permission to perform operations with the account. */
account.go:85
↓ 6 callersMethoddelUnit
(id int64)
storage.go:43
↓ 6 callersFunctionnewStorage
* newStorage - create new storage */
storage.go:24
↓ 5 callersMethodDelUnit
* DelUnit - deletion of a unit. The unit will be deleted only when all its accounts are stopped and deleted. In case of an error, a list of not delete
core_public.go:75
↓ 5 callersMethodTotalUnit
* TotalUnit - statement on all accounts of the unit. The ID-balance array is returned. Returned codes: ErrCodeCoreCatch // not obtained permission
core_public.go:118
↓ 5 callersFunctionnewSection
* newSection - create new section */
storage.go:67
↓ 4 callersMethodSave
* Save - saving data to a file. The application stops for the duration of this operation. Returned codes: ErrCodeCoreStop // unable to stop app Err
core_public.go:299
↓ 4 callersMethodcatch
* catch - obtaining a permit for an operation. If we have an open status, the counter is incremented and the `true` returns, otherwise the `false` is
core_private.go:16
↓ 4 callersMethoddelAccount
* delAccount - delete account. The account can not be deleted if it is not stopped or has a non-zero balance. */
unit.go:81
↓ 4 callersMethoddelAllAccounts
* delAllAccounts - delete all accounts. On error, a list of non-stopped or non-empty accounts is returned. Returned codes: ErrCodeAccountNotStop //
unit.go:113
↓ 4 callersMethodthrow
* throw - permission to conduct an operation is no longer required. Decrement of the counter. */
core_private.go:30
↓ 4 callersMethodthrow
* throw - remove permissions in accounts. */
transaction_private.go:131
↓ 3 callersMethodLoad
* Load - loading data from a file. The application stops for the duration of this operation. The existing accounts are not overwritten. Returned code
core_public.go:220
↓ 3 callersMethoddelStoppedAccounts
* delStoppedAccounts - delete all accounts (they are stopped). Returns a list of not deleted accounts (with a non-zero balance). */
unit.go:134
↓ 2 callersMethodcatch
* catch - obtaining permissions from accounts. Returned codes: ErrCodeTransactionCatch // account not allowed operation Ok */
transaction_private.go:112
↓ 2 callersMethodexeTransaction
* exeTransaction - execution of a transaction. Returned codes: ErrCodeUnitNotExist // unit not exist ErrCodeTransactionCatch // account not catch
transaction_private.go:30
↓ 2 callersMethodfill
* fill - getting accounts in the list. Returned codes: ErrCodeUnitNotExist // unit not exist Ok */
transaction_private.go:89
↓ 2 callersMethodid
* id - create an intermediate identifier from a persistent identifier. */
storage.go:50
↓ 2 callersFunctionnewTransaction
Core Transaction Copyright © 2017-2018 Eduard Sesigin. All rights reserved. Contacts: <claygod@yandex.ru> * newTransaction - create new Transaction. *
transaction_private.go:10
↓ 2 callersMethodrollback
* rollback - rolled back account operations. */
transaction_private.go:75
↓ 1 callersMethodthrow
* throw - current account operation has been completed */
account.go:102
↓ 1 callersMethodtotalUnsafe
* totalUnsafe - current balance of all accounts (fast and unsafe). Without locking. Use this method only in serial (non-parallel) mode. */
unit.go:67
FunctionBenchmarkAccountAddition
(b *testing.B)
account_bench_test.go:32
FunctionBenchmarkAccountStartStop
(b *testing.B)
account_bench_test.go:21
FunctionBenchmarkAccountTotal
(b *testing.B)
account_bench_test.go:11
FunctionBenchmarkBuyParallel
(b *testing.B)
core_bench_test.go:208
FunctionBenchmarkBuySequence
(b *testing.B)
core_bench_test.go:184
FunctionBenchmarkCreditParallel
(b *testing.B)
core_bench_test.go:75
FunctionBenchmarkCreditSequence
(b *testing.B)
core_bench_test.go:55
FunctionBenchmarkDebitParallel
(b *testing.B)
core_bench_test.go:117
FunctionBenchmarkDebitSequence
(b *testing.B)
core_bench_test.go:99
FunctionBenchmarkTotalUnitParallel
(b *testing.B)
core_bench_test.go:32
FunctionBenchmarkTotalUnitSequence
(b *testing.B)
core_bench_test.go:12
FunctionBenchmarkTrGetAccount2Parallel
(b *testing.B)
core_bench_test.go:258
FunctionBenchmarkTrGetAccount2Sequence
(b *testing.B)
core_bench_test.go:236
FunctionBenchmarkTransferParallel
(b *testing.B)
core_bench_test.go:160
FunctionBenchmarkTransferSequence
(b *testing.B)
core_bench_test.go:140
FunctionBenchmarkUnitGetAccountSequence
(b *testing.B)
core_bench_test.go:281
FunctionTestAccountAdd
(t *testing.T)
account_test.go:11
FunctionTestAccountAddingOverflow1
(t *testing.T)
account_test.go:30
FunctionTestAccountAddingOverflow2
(t *testing.T)
account_test.go:39
FunctionTestAccountCath
(t *testing.T)
account_test.go:86
FunctionTestAccountCredit
(t *testing.T)
account_test.go:48
FunctionTestAccountDebit
(t *testing.T)
account_test.go:68
FunctionTestAccountStart
(t *testing.T)
account_test.go:119
FunctionTestAccountStop
(t *testing.T)
account_test.go:149
FunctionTestAccountThrow
(t *testing.T)
account_test.go:110
FunctionTestAccountTotal
(t *testing.T)
account_test.go:76
FunctionTestCoreAddUnit
(t *testing.T)
core_test.go:118
FunctionTestCoreDelUnit
(t *testing.T)
core_test.go:137
FunctionTestCoreGetAccount
(t *testing.T)
core_test.go:104
FunctionTestCoreLoad
(t *testing.T)
core_test.go:295
FunctionTestCoreSave
(t *testing.T)
core_test.go:233
FunctionTestCoreStart
(t *testing.T)
core_test.go:65
FunctionTestCoreStop
(t *testing.T)
core_test.go:82
FunctionTestCoreTotalAccount
(t *testing.T)
core_test.go:200
FunctionTestCoreTotalUnit
(t *testing.T)
core_test.go:171
FunctionTestCreditPrepare
(t *testing.T)
transaction_test.go:11
FunctionTestSectionAdd
(t *testing.T)
storage_test.go:77
FunctionTestSectionDel
(t *testing.T)
storage_test.go:102
FunctionTestSectionGet
(t *testing.T)
storage_test.go:89
FunctionTestSectionNew
(t *testing.T)
storage_test.go:71
FunctionTestStorageAdd
(t *testing.T)
storage_test.go:21
FunctionTestStorageDel
(t *testing.T)
storage_test.go:46
FunctionTestStorageGet
(t *testing.T)
storage_test.go:33
FunctionTestStorageId
(t *testing.T)
storage_test.go:59
FunctionTestStorageNew
(t *testing.T)
storage_test.go:9
FunctionTestTransactionCatch
(t *testing.T)
transaction_test.go:64
FunctionTestTransactionExe
(t *testing.T)
transaction_test.go:34
FunctionTestTransactionRollback
(t *testing.T)
transaction_test.go:89
FunctionTestTransfer
(t *testing.T)
core_test.go:39
FunctionTestUnitDel
(t *testing.T)
unit_test.go:87
FunctionTestUnitDelAccount
(t *testing.T)
unit_test.go:34
FunctionTestUnitDelAllAccount
(t *testing.T)
unit_test.go:63
FunctionTestUnitGetAccount
(t *testing.T)
unit_test.go:11
FunctionTestUnitStart
(t *testing.T)
unit_test.go:120
FunctionTestUnitStop
(t *testing.T)
unit_test.go:102
FunctionTestUnitTotal
(t *testing.T)
unit_test.go:19
FunctionTestUsage
(t *testing.T)
core_test.go:15
next →1–100 of 107, ranked by callers