Documentation ¶
Index ¶
Constants ¶
const ( // SuccessSuffix is a constanta for ... SuccessSuffix = config.HISTORY_TAG + "__y" // FailureSuffix is a constanta for ... FailureSuffix = config.HISTORY_TAG + "__n" // SuccessFile is a constanta for ... SuccessFile = config.HISTORY_DIR + "/" + SuccessSuffix // FailureFile is a constanta for ... FailureFile = config.HISTORY_DIR + "/" + FailureSuffix )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Failure ¶
Failure is a struct failed record
func (*Failure) DeleteFailure ¶
DeleteFailure is a function for delete the failed record
func (*Failure) PullFailure ¶
PullFailure is a funtion for pull a failed record
type Historier ¶
type Historier interface { ReadSuccess(provider string, inherit bool) // Read the success record UpsertSuccess(string) bool // Update or join success records HasSuccess(string) bool // Check if there is a successful record DeleteSuccess(string) // Delete the success record FlushSuccess(provider string) // I/O output is successfully logged, but unclear cache ReadFailure(provider string, inherit bool) // Remove the failed record PullFailure() map[string]*request.Request // Pull the failed record and empty it UpsertFailure(*request.Request) bool // Update or join a failed record DeleteFailure(*request.Request) // Delete the failed record FlushFailure(provider string) // I/O output failed to record, but unclear cache Empty() // Clear the cache, but not output }
Historier is interface for history
type History ¶
History is interface for history
func (*History) Empty ¶
func (history *History) Empty()
Empty is a funtion for clear cache, but not output
func (*History) FlushFailure ¶
FlushFailure is a function for flush. I/O output failed record, but unclear cache
func (*History) FlushSuccess ¶
FlushSuccess is a function for flush. I/O output is successfully recorded, but unclear cache
func (*History) ReadFailure ¶
ReadFailure is a function for remove the failed record
func (*History) ReadSuccess ¶
ReadSuccess is function for read the success record
type Success ¶
Success is a struct success history
func (*Success) DeleteSuccess ¶
DeleteSuccess is a function for delete the success record
func (*Success) HasSuccess ¶
HasSuccess is a function for check a successful record,
func (*Success) UpsertSuccess ¶
UpsertSuccess is a function for update or join a successful record, Contrast is already there, there is no record, The return value indicates whether there is an insert operation.