Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPeerNotFound = errors.New("couldn't find peer")
Functions ¶
This section is empty.
Types ¶
type APIController ¶
type ChainService ¶
type ChainService interface { ActivateChain(chainID isc.ChainID) error DeactivateChain(chainID isc.ChainID) error GetAllChainIDs() ([]isc.ChainID, error) HasChain(chainID isc.ChainID) bool GetChainByID(chainID isc.ChainID) chain.Chain GetChainInfoByChainID(chainID isc.ChainID) (*dto.ChainInfo, error) GetContracts(chainID isc.ChainID) (dto.ContractsMap, error) GetEVMChainID(chainID isc.ChainID) (uint16, error) GetState(chainID isc.ChainID, stateKey []byte) (state []byte, err error) WaitForRequestProcessed(ctx context.Context, chainID isc.ChainID, requestID isc.RequestID, timeout time.Duration) (*isc.Receipt, *isc.VMError, error) }
type CommitteeService ¶
type EVMService ¶
type MetricsService ¶
type MetricsService interface { GetAllChainsMetrics() *dto.ChainMetrics GetChainConsensusPipeMetrics(chainID isc.ChainID) *models.ConsensusPipeMetrics GetChainConsensusWorkflowMetrics(chainID isc.ChainID) *models.ConsensusWorkflowMetrics GetChainMetrics(chainID isc.ChainID) *dto.ChainMetrics }
type NodeService ¶
type OffLedgerService ¶
type PeeringService ¶
type PeeringService interface { DistrustPeer(publicKey *cryptolib.PublicKey) (*dto.PeeringNodeIdentity, error) GetIdentity() *dto.PeeringNodeIdentity GetRegisteredPeers() []*dto.PeeringNodeStatus GetTrustedPeers() ([]*dto.PeeringNodeIdentity, error) IsPeerTrusted(publicKey *cryptolib.PublicKey) error TrustPeer(peer *cryptolib.PublicKey, netID string) (*dto.PeeringNodeIdentity, error) }
type RegistryService ¶
type RegistryService interface {
GetChainRecordByChainID(chainID isc.ChainID) (*registry.ChainRecord, error)
}
type UserService ¶
type UserService interface { AddUser(username string, password string, permissions []string) error DeleteUser(username string) error GetUser(username string) (*models.User, error) GetUsers() []*models.User UpdateUserPassword(username string, password string) error UpdateUserPermissions(username string, permissions []string) error }
type VMService ¶
type VMService interface { CallView(chainState state.State, chain chain.Chain, contractName isc.Hname, functionName isc.Hname, params dict.Dict) (dict.Dict, error) CallViewByChainID(chainID isc.ChainID, contractName isc.Hname, functionName isc.Hname, params dict.Dict) (dict.Dict, error) ParseReceipt(chain chain.Chain, receipt *blocklog.RequestReceipt) (*isc.Receipt, *isc.VMError, error) GetReceipt(chainID isc.ChainID, requestID isc.RequestID) (ret *isc.Receipt, vmError *isc.VMError, err error) }
Click to show internal directories.
Click to hide internal directories.