Documentation ¶
Index ¶
- Variables
- func BCAddressToEthAddress(address BCAddress) [20]byte
- func CompareHexOrDec(lhs, rhs string) (int, error)
- func NewPermissionLayer(sid string) permLayer.PermissionLayer
- func ValidateBootstrapPeersETH(bootstrapPeers []peer.AddrInfo, timeout time.Duration) (val, notval []peer.AddrInfo, err error)
- func ValidateBootstrapPeersNEO(bootstrapPeers []peer.AddrInfo, timeout time.Duration) (val, notval []peer.AddrInfo, err error)
- func ValidatePeerIDETH(bootstrapPeer peer.ID) (ret bool, err error)
- func ValidatePeerIDNEO(bootstrapPeer peer.ID) (ret bool, err error)
- type BCAddress
- type Ethereum
- func (e Ethereum) CompareBlockHeights(lhs, rhs permLayer.VersionData) (int, error)
- func (e Ethereum) GetBlockHash(blockHeight string) (string, error)
- func (e Ethereum) GetBlockHeight() (string, error)
- func (e Ethereum) ID() permLayer.PermissionLayerID
- func (e Ethereum) IsInPeerstoreMap(tocheckPeers []peer.AddrInfo) (isIn, notIn []peer.AddrInfo)
- func (e Ethereum) NewVersionData() (*permLayer.VersionData, error)
- func (e Ethereum) Permissioned() bool
- func (e Ethereum) PutInPeerstoreMap(validated, notValidated []peer.AddrInfo)
- func (e Ethereum) UpdateIndividualSPProfileCache(pid peer.ID)
- func (e Ethereum) UpdateSPProfileCache(pids []peer.ID)
- func (e Ethereum) ValidatePeer(pid peer.ID, timeout time.Duration) (bool, error)
- func (e Ethereum) ValidatePeers(bootstrapPeers []peer.AddrInfo, timeout time.Duration) (res []peer.AddrInfo, err error)
- func (e Ethereum) ValidatePeersPtrArr(bootstrapPeers []*peer.AddrInfo, timeout time.Duration) (res []*peer.AddrInfo, err error)
- type Neo
- func (n Neo) CompareBlockHeights(lhs, rhs permLayer.VersionData) (int, error)
- func (n Neo) GetBlockHash(blockHeight string) (string, error)
- func (n Neo) GetBlockHeight() (string, error)
- func (n Neo) ID() permLayer.PermissionLayerID
- func (n Neo) IsInPeerstoreMap(tocheckPeers []peer.AddrInfo) (isIn, notIn []peer.AddrInfo)
- func (n Neo) NewVersionData() (v *permLayer.VersionData, err error)
- func (n Neo) Permissioned() bool
- func (n Neo) PutInPeerstoreMap(validated, notValidated []peer.AddrInfo)
- func (n Neo) UpdateIndividualSPProfileCache(pid peer.ID)
- func (n Neo) UpdateSPProfileCache(pids []peer.ID)
- func (n Neo) ValidatePeer(pid peer.ID, timeout time.Duration) (bool, error)
- func (n Neo) ValidatePeers(bootstrapPeers []peer.AddrInfo, timeout time.Duration) (res []peer.AddrInfo, err error)
- func (n Neo) ValidatePeersPtrArr(bootstrapPeers []*peer.AddrInfo, timeout time.Duration) (res []*peer.AddrInfo, err error)
- type NonPermissioned
- func (n NonPermissioned) CompareBlockHeights(lhs, rhs permLayer.VersionData) (int, error)
- func (n NonPermissioned) GetBlockHash(blockHeight string) (string, error)
- func (n NonPermissioned) GetBlockHeight() (string, error)
- func (n NonPermissioned) ID() permLayer.PermissionLayerID
- func (n NonPermissioned) NewVersionData() (*permLayer.VersionData, error)
- func (n NonPermissioned) Permissioned() bool
- func (n NonPermissioned) UpdateIndividualSPProfileCache(pid peer.ID)
- func (n NonPermissioned) UpdateSPProfileCache(pids []peer.ID)
- func (n NonPermissioned) ValidatePeer(pid peer.ID, timout time.Duration) (bool, error)
- func (n NonPermissioned) ValidatePeers(bootstrapPeers []peer.AddrInfo, timeout time.Duration) (res []peer.AddrInfo, err error)
- func (n NonPermissioned) ValidatePeersPtrArr(bootstrapPeers []*peer.AddrInfo, timeout time.Duration) (res []*peer.AddrInfo, err error)
- type VersionData
Constants ¶
This section is empty.
Variables ¶
View Source
var SpFilenames = permLayer.SpFilenames
Functions ¶
func BCAddressToEthAddress ¶
func CompareHexOrDec ¶
func NewPermissionLayer ¶
func NewPermissionLayer(sid string) permLayer.PermissionLayer
Types ¶
type Ethereum ¶
type Ethereum struct { }
func (Ethereum) CompareBlockHeights ¶
func (e Ethereum) CompareBlockHeights(lhs, rhs permLayer.VersionData) (int, error)
func (Ethereum) GetBlockHeight ¶
func (Ethereum) ID ¶
func (e Ethereum) ID() permLayer.PermissionLayerID
func (Ethereum) IsInPeerstoreMap ¶
func (Ethereum) NewVersionData ¶
func (e Ethereum) NewVersionData() (*permLayer.VersionData, error)
func (Ethereum) Permissioned ¶
func (Ethereum) PutInPeerstoreMap ¶
func (Ethereum) UpdateIndividualSPProfileCache ¶
func (Ethereum) UpdateSPProfileCache ¶
func (Ethereum) ValidatePeer ¶
func (Ethereum) ValidatePeers ¶
type Neo ¶
type Neo struct { }
func (Neo) CompareBlockHeights ¶
func (n Neo) CompareBlockHeights(lhs, rhs permLayer.VersionData) (int, error)
func (Neo) GetBlockHeight ¶
func (Neo) ID ¶
func (n Neo) ID() permLayer.PermissionLayerID
func (Neo) IsInPeerstoreMap ¶
func (Neo) NewVersionData ¶
func (n Neo) NewVersionData() (v *permLayer.VersionData, err error)
func (Neo) Permissioned ¶
func (Neo) PutInPeerstoreMap ¶
func (Neo) UpdateIndividualSPProfileCache ¶
func (Neo) UpdateSPProfileCache ¶
func (Neo) ValidatePeer ¶
func (Neo) ValidatePeers ¶
type NonPermissioned ¶
type NonPermissioned struct { }
NONPERMISSIONED
func (NonPermissioned) CompareBlockHeights ¶
func (n NonPermissioned) CompareBlockHeights(lhs, rhs permLayer.VersionData) (int, error)
func (NonPermissioned) GetBlockHash ¶
func (n NonPermissioned) GetBlockHash(blockHeight string) (string, error)
func (NonPermissioned) GetBlockHeight ¶
func (n NonPermissioned) GetBlockHeight() (string, error)
func (NonPermissioned) ID ¶
func (n NonPermissioned) ID() permLayer.PermissionLayerID
func (NonPermissioned) NewVersionData ¶
func (n NonPermissioned) NewVersionData() (*permLayer.VersionData, error)
func (NonPermissioned) Permissioned ¶
func (n NonPermissioned) Permissioned() bool
func (NonPermissioned) UpdateIndividualSPProfileCache ¶
func (n NonPermissioned) UpdateIndividualSPProfileCache(pid peer.ID)
func (NonPermissioned) UpdateSPProfileCache ¶
func (n NonPermissioned) UpdateSPProfileCache(pids []peer.ID)
func (NonPermissioned) ValidatePeer ¶
func (NonPermissioned) ValidatePeers ¶
func (NonPermissioned) ValidatePeersPtrArr ¶
type VersionData ¶
type VersionData permLayer.VersionData
Click to show internal directories.
Click to hide internal directories.