storage

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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) GetCache

func (sm *StorageModule) GetCache(cacheId string) (any, error)

func (*StorageModule) GetCollection

func (sm *StorageModule) GetCollection(collectionName string) *spec.Collection

func (*StorageModule) ReadWriteBody

func (sm *StorageModule) ReadWriteBody(res *http.Response, callback func(string) string) string

func (*StorageModule) SetCache

func (sm *StorageModule) SetCache(cacheId string, val any, opts CacheOptions) error

type UpdateFunc

type UpdateFunc func(any, any) any

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL