mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
18 lines
660 B
Go
18 lines
660 B
Go
package hooks
|
|
|
|
/*
|
|
* This file is only ever generated once on the first generation and then is free to be modified.
|
|
* Any hooks you wish to add should be registered in the InitHooks function. Feel free to define them
|
|
* in this file or in separate files in the hooks package.
|
|
*/
|
|
|
|
func initHooks(h *Hooks) {
|
|
// Add hooks by calling h.register{SDKInit/BeforeRequest/AfterSuccess/AfterError}Hook
|
|
// with an instance of a hook that implements that specific Hook interface
|
|
// Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
|
|
|
|
hook := ledgerHook{}
|
|
h.registerBeforeRequestHook(hook)
|
|
h.registerAfterSuccessHook(hook)
|
|
}
|