cache

package
v0.83.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	DefaultApp string `json:"default_app"`

	LastAppRefresh *time.Time  `json:"last_app_refresh"`
	Apps           []types.App `json:"apps"`
}

func InitCache

func InitCache() (*Cache, error)

func (*Cache) ClearDefault

func (c *Cache) ClearDefault(defaultType string) error

func (Cache) GetApp

func (c Cache) GetApp(appSlugOrID string) (*types.App, error)

func (*Cache) Save

func (c *Cache) Save() error

func (*Cache) SetApp

func (c *Cache) SetApp(app *types.App) error

func (*Cache) SetDefault

func (c *Cache) SetDefault(defaultType string, defaultValue string) error

Jump to

Keyboard shortcuts

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