package
0.0.0-20240831221938-81d58bd93b8c
Repository: https://github.com/vanilla-os/sdk.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CheckIntegrity performs an integrity check of the provided data using the provided validation method and returns the result.
NewCleanupQueue creates a new cleanup queue.
NewEventManager creates a new event manager.
# Structs
CleanupQueue is a priority queue that runs cleanup tasks in order of priority and uses the defined error handler to handle errors.
CleanupTask is a task that defines a cleanup task to be run in the cleanup queue.
EventManager is a simple event manager that allows subscribing to events and notifying them, so that multiple parts of the code can be notified when an event happens and act accordingly.
FailedCheck represents a failed integrity check.
IntegrityCheckResult represents the result of an integrity check.
MD5Validator is an implementation of the validation method using MD5.
NoErrorHandler is a default error handler that does nothing, useful when you don't need to handle errors.
SHA1Validator is an implementation of the validation method using SHA-1.
SHA256Validator is an implementation of the validation method using SHA-256.
# Interfaces
ErrorHandler is the protocol for handling errors, use this to implement custom error handling logic.
ValidatorType defines the protocol for a validation method.
# Type aliases
ErrorHandlerFn is an error handler that implements the ErrorHandler protocol, use this to create custom error handling logic.
EventHandler is the protocol for handling events, use this to implement custom event handling logics for your application.