schema

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RdbProcessNoncePrefix      = "p:nonce:"  // key: processid, value: nonce
	RdbProcessMsgsPrefix       = "p:msgs:"   // key: processid, value: msg list
	RdbProcessAssignmentPrefix = "p:assign:" // key: processid, value: assignment list

	RdbMsgIndex         = "m:index"    // key: msgid, value: processid + nonce
	RdbMsgResult        = "m:result"   // key: msgid, value: result
	RdbMsgResultsPrefix = "m:results:" // key: processid, value: ordered list of msgid

	RdbCheckpointIndexPrefix = "ckp:index:" // key: processid, value: checkpoint arweave itemid

	RdbCachePrefix = "cache:"
)
View Source
const (
	RdbPendingTxIds     = "chainkit:pending"              // List: Pending TxId FIFO queue
	RdbUploadingTxIds   = "chainkit:uploading"            // Set: Uploading TxId pool
	RdbCurrentBundledIn = "chainkit:current_bundledin_id" // String: current bundledIn id with 1 hour expiration
	RdbUploadedTxIds    = "chainkit:uploaded_txids"       // Set: Uploaded TxId pool
	RdbChainkitCache    = "chainkit:cache"                // key: TxId, value BundleItem

	// MaxUploadingCount is the maximum number of transactions allowed in uploading state
	MaxUploadingCount = 100000 // 10w
)

chainkit constants

Variables

View Source
var (
	ErrInvalidProcessID = errors.New("err_invalid_process_id")
	ErrDBLockedTimeout  = errors.New("err_db_lock_timeout")
	ErrInvalidMsgID     = errors.New("err_invalid_msg_id")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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