Documentation
¶
Index ¶
- Constants
- type Manager
- func (this *Manager) RecoverCurrentProposalId(roleId uint64) (proposal.Id, error)
- func (this *Manager) RecoverLog(roleId uint64) ([]string, []proposal.Id, error)
- func (this *Manager) RecoverMinProposalId(roleId uint64) (proposal.Id, error)
- func (this *Manager) RetrieveAddresses() (map[uint64]string, error)
- func (this *Manager) UpdateCurrentProposalId(roleId uint64, id proposal.Id) error
- func (this *Manager) UpdateLogRecord(roleId uint64, index int, value string, id proposal.Id) error
- func (this *Manager) UpdateMinProposalId(roleId uint64, id proposal.Id) error
Constants ¶
View Source
const CURRENT_PROPOSAL_FILENAME = "currentproposalid.csv"
View Source
const LOG_FILENAME string = "log.csv"
View Source
const MIN_PROPOSAL_FILENAME string = "minproposalid.csv"
View Source
const PEERS_FILENAME string = "peers.csv"
View Source
const RECOVERY_DIR string = "coldstorage"
View Source
const RECOVERY_DIR_PATTERN string = RECOVERY_DIR + "/%d"
View Source
const RECOVERY_FILE_PATTERN string = RECOVERY_DIR_PATTERN + "/%s"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func ConstructManager ¶
Creates disk access manager for backup & recovery files
func (*Manager) RecoverCurrentProposalId ¶
func (*Manager) RecoverLog ¶
Recovers replicated log from disk.
func (*Manager) RecoverMinProposalId ¶
Recovers the MinProposalId from disk.
func (*Manager) RetrieveAddresses ¶
Reads the list of peers from a file on disk
func (*Manager) UpdateCurrentProposalId ¶
func (*Manager) UpdateLogRecord ¶
Updates a record in the replicated log on disk.
Click to show internal directories.
Click to hide internal directories.