storage

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FallbackDirPath = "fallback"
	DataDirPath     = "data"
	BinDirPath      = filepath.Join(DataDirPath, "bin")
	DbDirPath       = filepath.Join(DataDirPath, "db")
	ConfigDirPath   = filepath.Join(DataDirPath, "config")
	I18nDirPath     = filepath.Join(DataDirPath, "i18n")
	ConfigFilePath  = filepath.Join(ConfigDirPath, "configuration.yml")
	TokenFilePath   = filepath.Join(ConfigDirPath, "init-token")

	CookieNameForSession = "session-id"
	CookieNameForCSRF    = "csrf-token"
	SessionKeyForUserId  = "user-id"
)

Functions

This section is empty.

Types

type AccessRule

type AccessRule struct {
	Target    string
	Component string
	Role      string
}

type SessionItem

type SessionItem struct {
	LastViewed time.Time
	UA         string
}

type Storage

type Storage struct {
	DB     *IRelationalDB
	Config *configuration
}

func GetStorage

func GetStorage() *Storage

func (Storage) LoadConfiguration

func (s Storage) LoadConfiguration()

Jump to

Keyboard shortcuts

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