core

package
v0.0.0-...-9d76aac Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LevelDB *leveldb.DB

LevelDB is an instance of the LevelDB client for managing persistent cache.

View Source
var Logger *logging.Logger

Logger is an instance of the shared logger tool.

View Source
var MongoDB *mongo.Client

MongoDB is an instance of the MongoDB client for managing persistent cache.

Functions

func BootstrapContract

func BootstrapContract(contract contractapi.ContractInterface)

BootstrapContract performs start sequence of the Smart Contract handler.

func BuildQuery

func BuildQuery(selector map[string]interface{}, sort ...string) string

BuildQuery builds CouchDB query by given parameters:

`selector`: a filter string declaring which documents to return

`fields`: specifying which fields to be returned

`sort`: expression containing how to sort selected records.

func CloseLevelDB

func CloseLevelDB()

func InitCore

func InitCore()

InitCore performs core dependencies initialization sequence.

func InitLevelDB

func InitLevelDB()

func InitMongoDB

func InitMongoDB()

Types

This section is empty.

Jump to

Keyboard shortcuts

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