Documentation ¶
Index ¶
- Constants
- func GetCountPeerConnections() (uint64, error)
- func GetCountPeers() (uint64, error)
- func GetTopics() []db.Object
- func GetTopicsSorted() []db.Object
- func LogProcessError(processError *ProcessError) error
- type FoundPeer
- type IpPort
- type Message
- type Peer
- type PeerConnection
- type PeerConnectionStatus
- type PeerConnectionsRequest
- type PeerFound
- type ProcessError
- type ProcessStatus
- type SyncStatus
Constants ¶
View Source
const ( ProcessStatusPopulateP2sh = "populate-p2sh" ProcessStatusPopulateAddr = "populate-addr" ProcessStatusPopulateAddrInputs = "populate-addr-inputs" )
View Source
const (
IpBytePadSize = 18
)
View Source
const (
SyncStatusComplete = "complete"
)
Variables ¶
This section is empty.
Functions ¶
func GetCountPeerConnections ¶
func GetCountPeers ¶
func GetTopicsSorted ¶
func LogProcessError ¶
func LogProcessError(processError *ProcessError) error
Types ¶
type FoundPeer ¶
func GetFoundPeers ¶
func (*FoundPeer) Deserialize ¶
func (*FoundPeer) GetShardSource ¶
type PeerConnection ¶
type PeerConnection struct { Ip []byte Port uint16 Time time.Time Status PeerConnectionStatus }
func GetPeerConnectionLast ¶
func GetPeerConnectionLast(ip []byte, port uint16) (*PeerConnection, error)
func GetPeerConnectionLasts ¶
func GetPeerConnectionLasts(ipPorts []IpPort) ([]*PeerConnection, error)
func GetPeerConnections ¶
func GetPeerConnections(request PeerConnectionsRequest) ([]*PeerConnection, error)
func (*PeerConnection) Deserialize ¶
func (p *PeerConnection) Deserialize(data []byte)
func (*PeerConnection) GetShardSource ¶
func (p *PeerConnection) GetShardSource() uint
func (*PeerConnection) GetTopic ¶
func (p *PeerConnection) GetTopic() string
func (*PeerConnection) GetUid ¶
func (p *PeerConnection) GetUid() []byte
func (*PeerConnection) Serialize ¶
func (p *PeerConnection) Serialize() []byte
func (*PeerConnection) SetUid ¶
func (p *PeerConnection) SetUid(uid []byte)
type PeerConnectionStatus ¶
type PeerConnectionStatus int
const ( PeerConnectionStatusFail PeerConnectionStatus = 0 PeerConnectionStatusSuccess PeerConnectionStatus = 1 )
func (PeerConnectionStatus) String ¶
func (s PeerConnectionStatus) String() string
type PeerConnectionsRequest ¶
func (PeerConnectionsRequest) GetShard ¶
func (r PeerConnectionsRequest) GetShard() uint32
type ProcessError ¶
func (*ProcessError) Deserialize ¶
func (e *ProcessError) Deserialize(data []byte)
func (*ProcessError) GetShardSource ¶
func (e *ProcessError) GetShardSource() uint
func (*ProcessError) GetTopic ¶
func (e *ProcessError) GetTopic() string
func (*ProcessError) GetUid ¶
func (e *ProcessError) GetUid() []byte
func (*ProcessError) Serialize ¶
func (e *ProcessError) Serialize() []byte
func (*ProcessError) SetUid ¶
func (e *ProcessError) SetUid(uid []byte)
type ProcessStatus ¶
func GetProcessStatus ¶
func GetProcessStatus(shard uint, name string) (*ProcessStatus, error)
func NewProcessStatus ¶
func NewProcessStatus(shard uint, name string) *ProcessStatus
func (*ProcessStatus) Deserialize ¶
func (s *ProcessStatus) Deserialize(data []byte)
func (*ProcessStatus) GetShardSource ¶
func (s *ProcessStatus) GetShardSource() uint
func (*ProcessStatus) GetTopic ¶
func (s *ProcessStatus) GetTopic() string
func (*ProcessStatus) GetUid ¶
func (s *ProcessStatus) GetUid() []byte
func (*ProcessStatus) Save ¶
func (s *ProcessStatus) Save() error
func (*ProcessStatus) Serialize ¶
func (s *ProcessStatus) Serialize() []byte
func (*ProcessStatus) SetUid ¶
func (s *ProcessStatus) SetUid(uid []byte)
type SyncStatus ¶
func GetSyncStatus ¶
func GetSyncStatus(name string) (*SyncStatus, error)
func (*SyncStatus) Deserialize ¶
func (s *SyncStatus) Deserialize(data []byte)
func (*SyncStatus) GetShardSource ¶
func (s *SyncStatus) GetShardSource() uint
func (*SyncStatus) GetTopic ¶
func (s *SyncStatus) GetTopic() string
func (*SyncStatus) GetUid ¶
func (s *SyncStatus) GetUid() []byte
func (*SyncStatus) Serialize ¶
func (s *SyncStatus) Serialize() []byte
func (*SyncStatus) SetUid ¶
func (s *SyncStatus) SetUid(uid []byte)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.