{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package inproccontroller\n\n## Constants\n\n```go\nconst ContainerType = \"SYSTEM\"\n```\nContainerType is the string which the inproc container type is registered with the container.VMController\n\n## Types\n\n```go\ntype InprocVM struct {\n\t// contains filtered or unexported fields\n}\n```\nInprocVM is a vm. It is identified by a executable name\n\n```go\nfunc NewInprocVM(r *Registry) *InprocVM\n```\nNewInprocVM creates a new InprocVM\n\n```go\nfunc (vm *InprocVM) GetVMName(ccid ccintf.CCID) string\n```\nGetVMName ignores the peer and network name as it just needs to be unique in process.  It accepts a format function parameter to allow different formatting based on the desired use of the name.\n\n```go\nfunc (vm *InprocVM) HealthCheck(ctx context.Context) error\n```\nHealthCheck is provided in order to implement the VMProvider interface. It always returns nil..\n\n```go\nfunc (vm *InprocVM) Start(ccid ccintf.CCID, args []string, env []string, filesToUpload map[string][]byte, builder container.Builder) error\n```\nStart starts a previously registered system codechain\n\n```go\nfunc (vm *InprocVM) Stop(ccid ccintf.CCID, timeout uint, dontkill bool, dontremove bool) error\n```\nStop stops a system codechain\n\n```go\nfunc (vm *InprocVM) Wait(ccid ccintf.CCID) (int, error)\n```\nWait will block until the chaincode is stopped.\n\n```go\ntype Registry struct {\n\tChaincodeSupport ccintf.CCSupport\n\t// contains filtered or unexported fields\n}\n```\nRegistry stores registered system chaincodes. It implements container.VMProvider and scc.Registrar\n\n```go\nfunc NewRegistry() *Registry\n```\nNewRegistry creates an initialized registry, ready to register system chaincodes. The returned \\*Registry is \\_not\\_ ready to use as is.  You must set the ChaincodeSupport as soon as one is available, before any chaincode invocations occur.  This is because the chaincode support used to be a latent dependency, snuck in on the context, but now it is being made an explicit part of the startup.\n\n```go\nfunc (r *Registry) NewVM() container.VM\n```\nNewVM creates an inproc VM instance\n\n```go\nfunc (r *Registry) Register(ccid *ccintf.CCID, cc shim.Chaincode) error\n```\nRegister registers system chaincode with given path. The deploy should be called to initialize\n\n```go\ntype SendPanicFailure string\n```\nSendPanicFailure\n\n```go\nfunc (e SendPanicFailure) Error() string\n```\n\n```go\ntype SysCCRegisteredErr string\n```\nSysCCRegisteredErr registered error\n\n```go\nfunc (s SysCCRegisteredErr) Error() string\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/container/inproccontroller","name":"inproccontroller","synopsis":"","isRedistributable":true}
