Documentation
¶
Index ¶
- Constants
- func ChaincodeID(ccName string) string
- func DeploySysCC(sysCC SelfDescribingSysCC, chaincodeStreamHandler ChaincodeStreamHandler)
- type BuiltinSCCs
- type ChaincodeStreamHandler
- type PluginConfig
- type Provider
- func (p *Provider) DeploySysCCs(chaincodeStreamHandler ChaincodeStreamHandler)
- func (p *Provider) GetApplicationConfig(cid string) (channelconfig.Application, bool)
- func (p *Provider) GetQueryExecutorForLedger(cid string) (ledger.QueryExecutor, error)
- func (p *Provider) IsSysCC(name string) bool
- func (p *Provider) PolicyManager(channelID string) (policies.Manager, bool)
- func (p *Provider) RegisterSysCC(scc SelfDescribingSysCC) error
- type SelfDescribingSysCC
- type SendPanicFailure
- type SysCCWrapper
- func (sccw *SysCCWrapper) Chaincode() shim.Chaincode
- func (sccw *SysCCWrapper) Enabled() bool
- func (sccw *SysCCWrapper) InitArgs() [][]byte
- func (sccw *SysCCWrapper) InvokableCC2CC() bool
- func (sccw *SysCCWrapper) InvokableExternal() bool
- func (sccw *SysCCWrapper) Name() string
- func (sccw *SysCCWrapper) Path() string
- type SystemChaincode
- type ThrottledChaincode
- type ThrottledSysCC
- type Whitelist
Constants ¶
View Source
const SysCCVersion = "syscc"
Variables ¶
This section is empty.
Functions ¶
func ChaincodeID ¶
func DeploySysCC ¶
func DeploySysCC(sysCC SelfDescribingSysCC, chaincodeStreamHandler ChaincodeStreamHandler)
Types ¶
type BuiltinSCCs ¶
type BuiltinSCCs map[string]struct{}
func (BuiltinSCCs) IsSysCC ¶
func (bccs BuiltinSCCs) IsSysCC(name string) bool
type ChaincodeStreamHandler ¶
type ChaincodeStreamHandler interface { HandleChaincodeStream(ccintf.ChaincodeStream) error LaunchInProc(packageID string) <-chan struct{} }
type PluginConfig ¶
type PluginConfig struct { Enabled bool `mapstructure:"enabled" yaml:"enabled"` Name string `mapstructure:"name" yaml:"name"` Path string `mapstructure:"path" yaml:"path"` InvokableExternal bool `mapstructure:"invokableExternal" yaml:"invokableExternal"` InvokableCC2CC bool `mapstructure:"invokableCC2CC" yaml:"invokableCC2CC"` }
type Provider ¶
type Provider struct { Peer *peer.Peer SysCCs []SelfDescribingSysCC Whitelist Whitelist }
func (*Provider) DeploySysCCs ¶
func (p *Provider) DeploySysCCs(chaincodeStreamHandler ChaincodeStreamHandler)
func (*Provider) GetApplicationConfig ¶
func (p *Provider) GetApplicationConfig(cid string) (channelconfig.Application, bool)
func (*Provider) GetQueryExecutorForLedger ¶
func (p *Provider) GetQueryExecutorForLedger(cid string) (ledger.QueryExecutor, error)
func (*Provider) PolicyManager ¶
func (*Provider) RegisterSysCC ¶
func (p *Provider) RegisterSysCC(scc SelfDescribingSysCC) error
type SelfDescribingSysCC ¶
type SelfDescribingSysCC interface { Name() string Path() string InitArgs() [][]byte Chaincode() shim.Chaincode InvokableExternal() bool InvokableCC2CC() bool Enabled() bool }
func CreatePluginSysCCs ¶
func CreatePluginSysCCs(p *Provider) []SelfDescribingSysCC
type SendPanicFailure ¶
type SendPanicFailure string
func (SendPanicFailure) Error ¶
func (e SendPanicFailure) Error() string
type SysCCWrapper ¶
type SysCCWrapper struct {
SCC *SystemChaincode
}
func (*SysCCWrapper) Chaincode ¶
func (sccw *SysCCWrapper) Chaincode() shim.Chaincode
func (*SysCCWrapper) Enabled ¶
func (sccw *SysCCWrapper) Enabled() bool
func (*SysCCWrapper) InitArgs ¶
func (sccw *SysCCWrapper) InitArgs() [][]byte
func (*SysCCWrapper) InvokableCC2CC ¶
func (sccw *SysCCWrapper) InvokableCC2CC() bool
func (*SysCCWrapper) InvokableExternal ¶
func (sccw *SysCCWrapper) InvokableExternal() bool
func (*SysCCWrapper) Name ¶
func (sccw *SysCCWrapper) Name() string
func (*SysCCWrapper) Path ¶
func (sccw *SysCCWrapper) Path() string
type SystemChaincode ¶
type ThrottledChaincode ¶
type ThrottledChaincode struct {
// contains filtered or unexported fields
}
func (*ThrottledChaincode) Init ¶
func (t *ThrottledChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response
func (*ThrottledChaincode) Invoke ¶
func (t *ThrottledChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response
type ThrottledSysCC ¶
type ThrottledSysCC struct { SelfDescribingSysCC // contains filtered or unexported fields }
func Throttle ¶
func Throttle(limit int, systemCC SelfDescribingSysCC) *ThrottledSysCC
func (*ThrottledSysCC) Chaincode ¶
func (t *ThrottledSysCC) Chaincode() shim.Chaincode
Source Files
¶
Click to show internal directories.
Click to hide internal directories.