Documentation ¶
Overview ¶
Package insolar is the next generation high-performance scalable blockchain platform designed with the express purpose to meet an immense business scope. The enterprise-grade distributed ledger cloud platform will help to increase business velocity, create new revenue streams, and reduce cost and risk by securely extending enterprise SaaS and on-premises applications to drive tamper-resistant transactions on a trusted business network.
Insolar supports public and private blockchains and is able to customize different blockchains for different applications.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package configuration holds configuration for all components in Insolar host binary It allows also helps to manage config resources using Holder Usage: package main import ( "github.com/insolar/insolar/configuration" "fmt" ) func main() { holder := configuration.NewHolder() fmt.Printf("Default configuration:\n %+v\n", holder.Configuration) holder.SaveAs("insolar.yml") }
|
Package configuration holds configuration for all components in Insolar host binary It allows also helps to manage config resources using Holder Usage: package main import ( "github.com/insolar/insolar/configuration" "fmt" ) func main() { holder := configuration.NewHolder() fmt.Printf("Default configuration:\n %+v\n", holder.Configuration) holder.SaveAs("insolar.yml") } |
Package core contains common definitions used by other modules.
|
Package core contains common definitions used by other modules. |
message
Package message represents message that messagebus can route
|
Package message represents message that messagebus can route |
reply
Package reply represents responses to messages of the messagebus
|
Package reply represents responses to messages of the messagebus |
genesis
|
|
example
Package example provides smart contracts for building example of system work.
|
Package example provides smart contracts for building example of system work. |
mock/storage
Package storage provides interface and default implementation of storage as map for objects.
|
Package storage provides interface and default implementation of storage as map for objects. |
model/class
Package class provides constants for string representation of class for basic interfaces implementations.
|
Package class provides constants for string representation of class for basic interfaces implementations. |
model/contract
Package contract provides interface and default implementation of smart contract.
|
Package contract provides interface and default implementation of smart contract. |
model/domain
Package domain provides interface and default implementation of domain.
|
Package domain provides interface and default implementation of domain. |
model/object
Package object provides basic interfaces and default implementations of them.
|
Package object provides basic interfaces and default implementations of them. |
public/core
Package core allows to create Genesis Domain ReferenceDomain - system domain that allow global reference resolving.
|
Package core allows to create Genesis Domain ReferenceDomain - system domain that allow global reference resolving. |
Package ledger contains high level interfaces to storage engine and multiple record types
|
Package ledger contains high level interfaces to storage engine and multiple record types |
artifactmanager
Package artifactmanager provides high-level storage API for logic runner module.
|
Package artifactmanager provides high-level storage API for logic runner module. |
hash
Package hash contains Writer interface and SHA3 hasher.
|
Package hash contains Writer interface and SHA3 hasher. |
index
Package index represents indexes and meta information for records.
|
Package index represents indexes and meta information for records. |
jetcoordinator
Package jetcoordinator is responsible for all jet manipulations.
|
Package jetcoordinator is responsible for all jet manipulations. |
jetdrop
Package jetdrop represents Jet Drops (Blocks) of a blockchain.
|
Package jetdrop represents Jet Drops (Blocks) of a blockchain. |
ledgertestutil
Package ledgertestutil contains high level API tests and test utils for other modules.
|
Package ledgertestutil contains high level API tests and test utils for other modules. |
pulsemanager
Package pulsemanager is responsible for all pulse operations.
|
Package pulsemanager is responsible for all pulse operations. |
record
Package record contains code and types for storage records manipulation.
|
Package record contains code and types for storage records manipulation. |
storage
Package storage contains ledger storage implementation on top of BadgerDB engine.
|
Package storage contains ledger storage implementation on top of BadgerDB engine. |
storage/storagetest
Package storagetest contains high level API tests and test utils for other modules.
|
Package storagetest contains high level API tests and test utils for other modules. |
Package log contains adapter for third-party loggers Example: package main import ( "github.com/insolar/insolar/configuration" "github.com/insolar/insolar/log" ) func main() { // global logger log.SetLevel("Debug") log.Debugln("debug log message") // local logger logger, _ := log.NewLog(configuration.Log{Level: "Warning", Adapter: "logrus"}) logger.Warnln("warning log message") }
|
Package log contains adapter for third-party loggers Example: package main import ( "github.com/insolar/insolar/configuration" "github.com/insolar/insolar/log" ) func main() { // global logger log.SetLevel("Debug") log.Debugln("debug log message") // local logger logger, _ := log.NewLog(configuration.Log{Level: "Warning", Adapter: "logrus"}) logger.Warnln("warning log message") } |
Package logicrunner - infrastructure for executing smartcontracts
|
Package logicrunner - infrastructure for executing smartcontracts |
builtin
Package builtin is implementation of builtin contracts engine
|
Package builtin is implementation of builtin contracts engine |
goplugin
Package goplugin - golang plugin in docker runner
|
Package goplugin - golang plugin in docker runner |
goplugin/foundation
Package foundation server implementation of smartcontract functions
|
Package foundation server implementation of smartcontract functions |
Package messagebus routes messages (contract calls & responses) and delivers'em to relevant modules.
|
Package messagebus routes messages (contract calls & responses) and delivers'em to relevant modules. |
Package metrics is a gateway for Prometheus monitoring system, it based on Prometheus golang client.
|
Package metrics is a gateway for Prometheus monitoring system, it based on Prometheus golang client. |
network
|
|
hostnetwork
Package hostnetwork is an implementation of Kademlia DHT.
|
Package hostnetwork is an implementation of Kademlia DHT. |
hostnetwork/connection
Package connection encapsulates connection creation process and provides connection factories.
|
Package connection encapsulates connection creation process and provides connection factories. |
hostnetwork/host
Package host is a fundamental part of networking system.
|
Package host is a fundamental part of networking system. |
hostnetwork/packet
Package packet provides network messaging protocol and serialization layer.
|
Package packet provides network messaging protocol and serialization layer. |
hostnetwork/relay
Package relay is an implementation of relay mechanism.
|
Package relay is an implementation of relay mechanism. |
hostnetwork/resolver
Package resolver provides interface (and default implementation) to retrieve public network address.
|
Package resolver provides interface (and default implementation) to retrieve public network address. |
hostnetwork/routing
Package routing implements Kademlia hash tables with XOR distance metrics.
|
Package routing implements Kademlia hash tables with XOR distance metrics. |
hostnetwork/rpc
Package rpc allows higher level components to register methods that can be called by other network hosts.
|
Package rpc allows higher level components to register methods that can be called by other network hosts. |
hostnetwork/store
Package store provides interfaces and default in-memory implementation of storage for DHT metadata.
|
Package store provides interfaces and default in-memory implementation of storage for DHT metadata. |
hostnetwork/transport
Package transport provides network transport interface.
|
Package transport provides network transport interface. |
toolkit
|
|
go/foundation
Package foundation is a base package for writing smartcontracts in go language.
|
Package foundation is a base package for writing smartcontracts in go language. |
Package version provides project version information.
|
Package version provides project version information. |
Click to show internal directories.
Click to hide internal directories.