Documentation ¶
Overview ¶
Package persistence provides storing/recovery mechanism for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recovery ¶
type Recovery struct { Index uint8 `json:"index"` TimeStamp uint64 `json:"time_stamp"` RequestsInTenSec [10]uint64 `json:"requests_10s"` ResponsesInTenSec [10]uint64 `json:"responses_10s"` }
Recovery type manages data that should be recovered later on.
func NewEmptyRecovery ¶
func NewEmptyRecovery() *Recovery
NewEmptyRecovery allocates and returns a new empty Recovery.
func NewRecovery ¶
func NewRecovery(index uint8, timestamp uint64, requestsInTenSec, responsesInTenSec [10]uint64) *Recovery
NewRecovery allocates and returns a new Recovery from a given data to track the data that should be recovered later.
Click to show internal directories.
Click to hide internal directories.