package
2.2.11
Repository: https://github.com/kompitech/fabric-cc-core.git
Documentation: pkg.go.dev

# Functions

Error creates new initialized HttpError.
ErrorBadRequest returns new HttpError with HTTP status code 400.
ErrorConflict returns new HttpError with HTTP status code 409.
ErrorForbidden returns new HttpError with HTTP status code 403.
ErrorNotFound returns new HttpError with HTTP status code 404.
ErrorUnprocessableEntity returns new HttpError with HTTP status code 422.
No description provided by the author
No description provided by the author
GetUUIDGeneratingFunc returns func that returns unique UUID and returned func can be called repeatedly in one transaction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

executed after BeforeCreate, after saving asset to state.
execute after asset was loaded from state.
execute after asset was loaded from state and is about to be put to "results" array.
execute after asset is resolved.
executed after AfterUpdate, after saving asset to state.
executed after FirstCreate, after applying input data.
execute before asset is deleted.
execute before query was executed.
executed after FirstUpdate, after applying input data.
minimum is 1!.
executed before asset is created from input data.
executed after asset was loaded from state, but before input data patch was applied.
special stage which has asset present in prePatch param, and the patch present in postPatch param.
Definition of business logic stages.

# Variables

CertSHA256IDFunc is example of different IDFunc for tests.
CertSHA512IDFunc is legacy function that was used before pluggable identity ID getting.

# Structs

BusinessExecutor holds configuration for business logic policy and can execute it on asset instance.
No description provided by the author
Changelog stores history of all schema changes in Registry.
No description provided by the author
Configuration is used to manage configuration of this particular dynamic chaincode (previously called Engine).
No description provided by the author
FuncKey is the key for policy member - it defines the asset name and its version to execute on version -1 has special meaning -> wildcard -> execute on ALL versions (do not use in production or the migrations of business logic will be impossible).
FunctionExecutor holds configuration of callable functions.
HTTPErr is an error with custom HTTP status code.
No description provided by the author
No description provided by the author
Registry manages assets and singletons.

# Interfaces

ContextInterface is extension of contractapi.TransactionContextInterface.
No description provided by the author
No description provided by the author

# Type aliases

BusinessPolicyMember is signature for business logic function.
FunctionPolicy is definition of list of functions to execute for some name.
FunctionPolicyMember is signature for all functions in policy.
No description provided by the author
Stage is symbolic for stage when should function(s) execute.
No description provided by the author