app

package
v0.0.0-...-8f6d644 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DataPath = "./appdata"
View Source
const (
	Name = "tomo"
)
View Source
const UserDataPath = "./userdata"

Variables

View Source
var (
	CacheDir = filepath.Join(DataPath, "cache")
)
View Source
var Version = "develop"

Functions

func CacheMiddlewareHandler

func CacheMiddlewareHandler(next http.Handler) http.Handler

func GetThumbHash

func GetThumbHash(key string) ([]byte, error)

func GetThumbHashWithPathname

func GetThumbHashWithPathname(pathname string) ([]byte, error)

func IsCurrentlyDarkMode

func IsCurrentlyDarkMode() bool

func OnShutdown

func OnShutdown(fn func())

func Shutdown

func Shutdown()

func StoreThumbHash

func StoreThumbHash(key string, hash []byte) error

func WebviewUserDataPath

func WebviewUserDataPath() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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