Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SpFilenames = struct { sync.RWMutex M map[string]*SafeFilename }{M: make(map[string]*SafeFilename)}
Functions ¶
This section is empty.
Types ¶
type PermissionLayer ¶
type PermissionLayer interface { ID() PermissionLayerID Permissioned() bool ValidatePeersPtrArr(bootstrapPeers []*peer.AddrInfo, timeout time.Duration) (res []*peer.AddrInfo, err error) ValidatePeers(bootstrapPeers []peer.AddrInfo, timeout time.Duration) (res []peer.AddrInfo, err error) ValidatePeer(pid peer.ID, timeout time.Duration) (bool, error) UpdateIndividualSPProfileCache(pid peer.ID) UpdateSPProfileCache(pids []peer.ID) CompareBlockHeights(lhs, rhs VersionData) (int, error) GetBlockHeight() (string, error) GetBlockHash(blockHeight string) (string, error) NewVersionData() (*VersionData, error) }
type PermissionLayerID ¶
type PermissionLayerID string
const ( EthPermissionId PermissionLayerID = "ETH" NotPermissionId PermissionLayerID = "NON" NeoPermissionId PermissionLayerID = "NEO" )
type SafeFilename ¶
type VersionData ¶
Click to show internal directories.
Click to hide internal directories.