Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
ProviderSet is a Wire provider set that declares dependency injection rules. It includes the NewStore constructor function to generate datastore instances. wire.Bind is used to bind the IStore interface to the concrete implementation *datastore, allowing automatic injection of *datastore instances wherever IStore is required.
View Source
var ( // S is a global variable for convenient access to the initialized datastore // instance from other packages. S *datastore )
Functions ¶
Types ¶
type IStore ¶
type IStore interface {
Secret() *cache.ChainCache[any]
}
IStore defines the methods that the Store layer needs to implement.
Click to show internal directories.
Click to hide internal directories.