_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c173200
// Scan deserializes the log topics.
c173201
// NewWorker returns new instance of worker.
c173202
// NewLoggerBase creates a new LoggerBase.
c173203
// Log adds a new log message with a given severity level.
c173204
// PreAccountAddBalanceApprove approve balance if amount exists.
c173205
// PreAccountAddBalance adds balance to psc.
c173206
// AfterAccountAddBalance updates psc and ptc balance of an account.
c173207
// AfterAccountReturnBalance updates psc and ptc balance of an account.
c173208
// AccountUpdateBalances updates ptc, psc and eth balance values.
c173209
// PreAccountReturnBalance returns from psc to ptc.
c173210
// GetOfferingUsage returns total units used for all channels // with a given offering.
c173211
// GetProductUsage returns total units used in all channel // of all offerings with given product.
c173212
// AddMapping maps an external port to a local port for a specific // service to UPnP interface.
c173213
// DeleteMapping removes the port mapping to UPnP interface.
c173214
// PostCheque sends a payment cheque to a payment server.
c173215
// NewHTTPClient returns a client that speaks to tor open sock.
c173216
// NewServer creates a new UI server.
c173217
// AddHandler registers a new RPC handler in a given namespace.
c173218
// ListenAndServe starts to listen and to serve requests.
c173219
// Recover ensures data consistency after unexpected controller's exit.
c173220
// ConnStr composes a data connection string.
c173221
// NewDBFromConnStr connects to db and returns db instance.
c173222
// NewDB creates a new data connection handle.
c173223
// GetCountry returns country code by ip. // Parses response in JSON format and returns a value of the field.
c173224
// Endpoint returns endpoint msg for a channel with given key.
c173225
// NewServer creates a new pay server.
c173226
// NewMonitor creates new blockchain monitor.
c173227
// initLastProcessedBlock calculates last processed block. If user role is // client and value of "eth.event.lastProcessedBlock" setting is 0, then value // of "eth.event.lastProcessedBlock" setting is equal the difference between // the last Ethereum block and a InitialBlocks value. If InitialBlocks // value is 0, the...
c173228
// Start starts scanning blockchain for events.
c173229
// newClient creates client for connection to the Ethereum.
c173230
// Loop performs a function that creates new jobs with a certain frequency. // If at the moment there is already a similar active job, then such job is // ignored. The function works correctly only with jobs for which duplicates // are allowed.
c173231
// Offering gets offering message through tor net.
c173232
// Endpoint gets endpoint message through tor net.
c173233
// Ping returns an error if remote enpoint cannot be reached.
c173234
// GetEthTransactions returns transactions by related object.
c173235
// AgentSeal encrypts message using client's public key and packs with // agent signature.
c173236
// ClientOpen decrypts message using client's key and verifies using agent's key.
c173237
// PackWithSignature packs message with signature.
c173238
// UnpackSignature unpacks msg from signature.
c173239
// VerifySignature returns true if signature is correct.
c173240
// signature computes and returns signature.
c173241
// GetObject finds object in a database by id, // then returns an object on raw JSON format.
c173242
// GetObjectByHash finds object in a database by hash, // then returns an object on raw JSON format.
c173243
// ToError converts error into Error pointer.
c173244
// SetPassword sets the password only on the first call. // Returns error if password already exists.
c173245
// UpdatePassword updates the password.
c173246
// GetToken returns token if password is correct.
c173247
// NewProcessor creates a new processor.
c173248
// NewConfig creates a default job queue configuration.
c173249
// NewQueue creates a new job queue.
c173250
// AddWithDataAndDelay is convenience method to add a job with given data // and delay.
c173251
// AddWithData is convenience method to add a job with given data.
c173252
// AddSimple is convenience method to add a job.
c173253
// AddWithDelay is convenience method to add a job with given data delay.
c173254
// Subscribe adds a subscription to job result notifications for given keys. // Each subscription key can be be a job type or a job related id. SubID is // used to distinguish between different subscriptions.
c173255
// Unsubscribe removes a subscription from job result notifications for given // ids of related objects. SubID is used to distinguish between different // subscriptions to a same related object.
c173256
// TopUpChannel initiates JobClientPreChannelTopUp job.
c173257
// ChangeChannelStatus updates channel state.
c173258
// GetAgentChannels gets channels for agent.
c173259
// GetChannelsUsage returns detailed usage on channels.
c173260
// GetClientChannels gets client channel information.
c173261
// ReadSetting reads value of a given setting.
c173262
// ReadUintSetting reads value of a given uint setting.
c173263
// ReadBoolSetting reads value of a given bool setting.
c173264
// SuspendChannel tries to suspend a given channel.
c173265
// ActivateChannel tries to activate a given channel.
c173266
// TerminateChannel tries to terminate a given channel.
c173267
// ExportPrivateKey returns a private key in base64 encoding by account id.
c173268
// GetAccounts returns accounts.
c173269
// GenerateAccount generates new private key and creates new account.
c173270
// ImportAccountFromHex imports private key from hex, creates account // and initiates JobAccountUpdateBalances job.
c173271
// ImportAccountFromJSON imports private key from JSON blob with password, // creates account and initiates JobAccountUpdateBalances job.
c173272
// TransferTokens initiates JobPreAccountAddBalanceApprove // or JobPreAccountReturnBalance job depending on the direction of the transfer.
c173273
// UpdateBalance initiates JobAccountUpdateBalances job.
c173274
// UpdateAccount updates an account.
c173275
// GetLastBlockNumber returns last known block number.
c173276
// GetEndpoint returns an endpoint for a given client key.
c173277
// SetProductConfig sets product configuration.
c173278
// NewWriterLogger creates a new io.Writer based logger.
c173279
// NewFileLogger creates a new file logger.
c173280
// NewClient returns new client instance based given somc type and data.
c173281
// Parse parses a NAT interface description.
c173282
// Map adds a port mapping on NAT interface and keeps it alive until interface // is closed.
c173283
// AddMapping maps an external port to a local port for a specific // service.
c173284
// DeleteMapping removes the port mapping.
c173285
// ReadFile reads a file content from the embedded filesystem.
c173286
// GetUserRole returns user role.
c173287
// NewHandler creates a new handler.
c173288
// NewBackend returns eth back implementation.
c173289
// addTimeout adds timeout to context.
c173290
// SuggestGasPrice retrieves the currently suggested gas price to allow a timely // execution of a transaction.
c173291
// EstimateGas tries to estimate the gas needed to execute a specific // transaction based on the current pending state of the backend blockchain.
c173292
// CooperativeClose calls cooperativeClose method of Privatix service contract.
c173293
// RegisterServiceOffering calls registerServiceOffering method of Privatix // service contract.
c173294
// PTCBalanceOf calls balanceOf method of Privatix token contract.
c173295
// PTCIncreaseApproval calls increaseApproval method of Privatix token contract.
c173296
// PSCBalanceOf calls balanceOf method of Privatix service contract.
c173297
// PSCAddBalanceERC20 calls addBalanceERC20 of Privatix service contract.
c173298
// PSCGetOfferingInfo calls getOfferingInfo of Privatix service contract.
c173299
// PSCGetChannelInfo calls getChannelInfo method of Privatix service contract.