Versions in this module Expand all Collapse all v0 v0.0.1 Nov 15, 2023 Changes in this version + func Connect(user func(Substrate) error, opts ...ConnectOption) error + func ConnectWithAttachStdamp(attachStdamp io.Writer) func(co *connectOption) error + func ConnectWithCommand(command string) func(co *connectOption) error + func ConnectWithLogLevel(level hclog.Level) func(co *connectOption) error + func EncodePhylumBytes(phylum string) string + type ArgsCall struct + Command string + Options *ConcreteRequestOptions + Tag string + type ArgsCloseMock struct + Tag string + type ArgsHealthCheck struct + Nat int + type ArgsInit struct + Options *ConcreteRequestOptions + Phylum string + Tag string + type ArgsNewMockFrom struct + Name string + Snapshot []byte + Version string + type ArgsQueryBlock struct + Height uint64 + Options *ConcreteRequestOptions + Tag string + type ArgsQueryInfo struct + Options *ConcreteRequestOptions + Tag string + type ArgsSetCreatorWithAttributesMock struct + Attrs map[string]string + Creator string + Tag string + type ArgsSnapshotMock struct + Tag string + type Block struct + Hash string + Transactions []*Transaction + type ConcreteRequestOptions struct + AuthToken string + CCFetchURLDowngrade bool + CCFetchURLProxy string + Creator string + DependentBlock string + DependentTxID string + DisableWritePolling bool + Endpoint string + Headers map[string]string + ID string + MSPFilter []string + MinEndorsers int + Params []byte + PhylumVersion string + Timestamp string + Transient map[string][]byte + type ConnectOption func(co *connectOption) error + type Error struct + Diagnostic string + func (e Error) Error() string + type Plugin struct + Impl Substrate + func (Plugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error) + func (p *Plugin) Server(*plugin.MuxBroker) (interface{}, error) + type PluginRPC struct + func (g *PluginRPC) Call(tag string, command string, options *ConcreteRequestOptions) (*Response, error) + func (g *PluginRPC) CloseMock(tag string) error + func (g *PluginRPC) HealthCheck(nat int) (int, error) + func (g *PluginRPC) Init(tag string, phylum string, options *ConcreteRequestOptions) error + func (g *PluginRPC) NewMockFrom(name string, version string, snapshot []byte) (string, error) + func (g *PluginRPC) QueryBlock(tag string, height uint64, options *ConcreteRequestOptions) (*Block, error) + func (g *PluginRPC) QueryInfo(tag string, options *ConcreteRequestOptions) (uint64, error) + func (g *PluginRPC) SetCreatorWithAttributesMock(tag string, creator string, attrs map[string]string) error + func (g *PluginRPC) SnapshotMock(tag string) ([]byte, error) + type PluginRPCServer struct + Impl Substrate + func (s *PluginRPCServer) Call(args *ArgsCall, resp *RespCall) error + func (s *PluginRPCServer) CloseMock(args *ArgsCloseMock, resp *RespCloseMock) error + func (s *PluginRPCServer) HealthCheck(args *ArgsHealthCheck, resp *RespHealthCheck) error + func (s *PluginRPCServer) Init(args *ArgsInit, resp *RespInit) error + func (s *PluginRPCServer) NewMockFrom(args *ArgsNewMockFrom, resp *RespNewMockFrom) error + func (s *PluginRPCServer) QueryBlock(args *ArgsQueryBlock, resp *RespQueryBlock) error + func (s *PluginRPCServer) QueryInfo(args *ArgsQueryInfo, resp *RespQueryInfo) error + func (s *PluginRPCServer) SetCreatorWithAttributesMock(args *ArgsSetCreatorWithAttributesMock, resp *RespSetCreatorWithAttributesMock) error + func (s *PluginRPCServer) SnapshotMock(args *ArgsSnapshotMock, resp *RespSnapshotMock) error + type RespCall struct + Err *Error + Response *Response + type RespCloseMock struct + Err *Error + type RespHealthCheck struct + Suc int + type RespInit struct + Err *Error + type RespNewMockFrom struct + Err *Error + Tag string + type RespQueryBlock struct + Block *Block + Err *Error + type RespQueryInfo struct + Err *Error + Height uint64 + type RespSetCreatorWithAttributesMock struct + Err *Error + type RespSnapshotMock struct + Err *Error + Snapshot []byte + type Response struct + ErrorCode int + ErrorJSON []byte + ErrorMessage string + HasError bool + ResultJSON []byte + TransactionID string + func (s *Response) UnmarshalTo(dst interface{}) error + type Substrate interface + Call func(string, string, *ConcreteRequestOptions) (*Response, error) + CloseMock func(string) error + HealthCheck func(int) (int, error) + Init func(string, string, *ConcreteRequestOptions) error + NewMockFrom func(string, string, []byte) (string, error) + QueryBlock func(string, uint64, *ConcreteRequestOptions) (*Block, error) + QueryInfo func(string, *ConcreteRequestOptions) (uint64, error) + SetCreatorWithAttributesMock func(string, string, map[string]string) error + SnapshotMock func(string) ([]byte, error) + type SubstrateConnection struct + func NewSubstrateConnection(opts ...ConnectOption) (*SubstrateConnection, error) + func (s *SubstrateConnection) Close() error + func (s *SubstrateConnection) GetSubstrate() Substrate + type Transaction struct + ChaincodeID string + Event []byte + ID string + Reason string