context

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreContext

type CoreContext struct {
	P2pClient     *p2p.P2pClient
	VmManager     provider.Manager
	Cm            *config.ConfigManager
	ReportClient  chain.ReportClient
	SubstrateApi  *gsrpc.SubstrateAPI
	TimerService  *utils.TimerService
	EventContext  *event.EventContext
	EventService  event.IEventService
	ChainListener *listener.ChainListener
}

CoreContext the application context , wrapped with some bean

func (*CoreContext) GetConfig

func (c *CoreContext) GetConfig() *config.Config

func (*CoreContext) InitP2p added in v1.3.0

func (c *CoreContext) InitP2p() error

func (*CoreContext) InitSubstrate added in v1.2.0

func (c *CoreContext) InitSubstrate() error

func (*CoreContext) ResetSubstrate added in v1.3.0

func (c *CoreContext) ResetSubstrate() error

Jump to

Keyboard shortcuts

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