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 |
---|---|
application
|
|
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") } |
docker
|
|
Package insolar contains common definitions used by other modules.
|
Package insolar contains common definitions used by other modules. |
backoff
Package backoff provides an exponential-backoff implementation.
|
Package backoff provides an exponential-backoff implementation. |
gen
Package gen contains functions for generating random base insolar types.
|
Package gen contains functions for generating random base insolar types. |
jet
Package jet provides objects and interfaces for working with Jet objects.
|
Package jet provides objects and interfaces for working with Jet objects. |
jetcoordinator
Package jetcoordinator is responsible for all jet manipulations.
|
Package jetcoordinator is responsible for all jet manipulations. |
node
Package node contains node storage
|
Package node contains node storage |
pulse
Package Pulse contains Pulse storage.
|
Package Pulse contains Pulse storage. |
reply
Package reply represents responses to messages of the messagebus
|
Package reply represents responses to messages of the messagebus |
store
Package db contains primitives for storing and indexing data.
|
Package db contains primitives for storing and indexing data. |
instrumentation
|
|
inslogger
Package inslogger contains context helpers for log Examples: // initialize base context with default logger with provided trace id ctx, inslog := inslogger.WithTraceField(context.Background(), "TraceID") inslog.Warn("warn") // get logger from context inslog := inslogger.FromContext(ctx) // initalize logger (SomeNewLogger() should return insolar.Logger) inslogger.SetLogger(ctx, SomeNewLogger()) Hints: Use environment variables for log level setup: INSOLAR_LOG_LEVEL=debug INSOLAR_LOG_FORMATTER=text go test ./yourpackage/...
|
Package inslogger contains context helpers for log Examples: // initialize base context with default logger with provided trace id ctx, inslog := inslogger.WithTraceField(context.Background(), "TraceID") inslog.Warn("warn") // get logger from context inslog := inslogger.FromContext(ctx) // initalize logger (SomeNewLogger() should return insolar.Logger) inslogger.SetLogger(ctx, SomeNewLogger()) Hints: Use environment variables for log level setup: INSOLAR_LOG_LEVEL=debug INSOLAR_LOG_FORMATTER=text go test ./yourpackage/... |
insmetrics
Package insmetrics provides helpers for opencesus metrics.
|
Package insmetrics provides helpers for opencesus metrics. |
instracer
Package instracer contains helpers for opencesus tracer.
|
Package instracer contains helpers for opencesus tracer. |
introspector
introspector provides grpc/rest introspection API endpoint on shared tcp port.
|
introspector provides grpc/rest introspection API endpoint on shared tcp port. |
introspector/introproto
Package introproto is a reverse proxy.
|
Package introproto is a reverse proxy. |
pprof
Package pprof provides http pprof handlers Examples: curl localhost:9090/debug/pprof/trace?seconds=10 > trace.out For more information about pprof, see https://github.com/google/pprof/blob/master/doc/README.md and https://golang.org/pkg/runtime/pprof/
|
Package pprof provides http pprof handlers Examples: curl localhost:9090/debug/pprof/trace?seconds=10 > trace.out For more information about pprof, see https://github.com/google/pprof/blob/master/doc/README.md and https://golang.org/pkg/runtime/pprof/ |
ledger
|
|
artifact
artifact contains tools for managing ledger artifacts without network, that required by genesis and other bootstrap stuff
|
artifact contains tools for managing ledger artifacts without network, that required by genesis and other bootstrap stuff |
heavy/pulsemanager
Package pulsemanager is responsible for all pulse operations.
|
Package pulsemanager is responsible for all pulse operations. |
light/executor
executor contains internal business logic object for light executor.
|
executor contains internal business logic object for light executor. |
object
Package object contains code and types for storage records manipulation.
|
Package object contains code and types for storage records manipulation. |
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: "zerolog"}) 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: "zerolog"}) 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 |
builtin/foundation
Package foundation server implementation of smartcontract functions
|
Package foundation server implementation of smartcontract functions |
goplugin
Package goplugin - golang plugin in docker runner
|
Package goplugin - golang plugin in docker runner |
pulsemanager
Package pulsemanager is responsible for all pulse operations.
|
Package pulsemanager is responsible for all pulse operations. |
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. |
utils
|
|
Package version provides project version information.
|
Package version provides project version information. |
Click to show internal directories.
Click to hide internal directories.