Documentation ¶
Index ¶
- func New(modCtx modules.RuntimeContext) modules.GoModule
- type CacheOptions
- type StorageModule
- func (sm *StorageModule) Exports() *modules.Exports
- func (sm *StorageModule) GetCache(cacheId string) (any, error)
- func (sm *StorageModule) GetCollection(collectionName string) *spec.Collection
- func (sm *StorageModule) ReadWriteBody(res *http.Response, callback func(string) string) string
- func (sm *StorageModule) SetCache(cacheId string, val any, opts CacheOptions) error
- type UpdateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheOptions ¶
type CacheOptions struct {
TTL int `json:"ttl"`
}
type StorageModule ¶
type StorageModule struct {
// contains filtered or unexported fields
}
func (*StorageModule) Exports ¶
func (sm *StorageModule) Exports() *modules.Exports
func (*StorageModule) GetCollection ¶
func (sm *StorageModule) GetCollection(collectionName string) *spec.Collection
func (*StorageModule) ReadWriteBody ¶
func (*StorageModule) SetCache ¶
func (sm *StorageModule) SetCache(cacheId string, val any, opts CacheOptions) error
type UpdateFunc ¶
Click to show internal directories.
Click to hide internal directories.