github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/chat/storage/hooks.go (about)

     1  package storage
     2  
     3  import "github.com/keybase/client/go/chat/globals"
     4  
     5  func SetupGlobalHooks(g *globals.Context) {
     6  	g.ExternalG().AddLogoutHook(inboxMemCache, "chat/storage/inbox")
     7  	g.ExternalG().AddDbNukeHook(inboxMemCache, "chat/storage/inbox")
     8  
     9  	g.ExternalG().AddLogoutHook(outboxMemCache, "chat/storage/outbox")
    10  	g.ExternalG().AddDbNukeHook(outboxMemCache, "chat/storage/outbox")
    11  
    12  	g.ExternalG().AddLogoutHook(readOutboxMemCache, "chat/storage/readoutbox")
    13  	g.ExternalG().AddDbNukeHook(readOutboxMemCache, "chat/storage/readoutbox")
    14  
    15  	g.ExternalG().AddLogoutHook(reacjiMemCache, "chat/storage/reacjiMemCache")
    16  	g.ExternalG().AddDbNukeHook(reacjiMemCache, "chat/storage/reacjiMemCache")
    17  
    18  	g.ExternalG().AddLogoutHook(blockEngineMemCache, "chat/storage/blockEngineMemCache")
    19  	g.ExternalG().AddDbNukeHook(blockEngineMemCache, "chat/storage/blockEngineMemCache")
    20  }