Documentation ¶
Index ¶
- Constants
- type MenuStorageService
- func (ms *MenuStorageService) Close() error
- func (ms *MenuStorageService) EnsureDbDir() error
- func (ms *MenuStorageService) GetPersister(ctx context.Context) (*persist.Persister, error)
- func (ms *MenuStorageService) GetResource(ctx context.Context) (resource.Resource, error)
- func (ms *MenuStorageService) GetStateStore(ctx context.Context) (db.Db, error)
- func (ms *MenuStorageService) GetUserdataDb(ctx context.Context) (db.Db, error)
- func (ms *MenuStorageService) WithGettext(path string, lns []lang.Language) *MenuStorageService
- type SimpleStorageProvider
- type Storage
- type StorageProvider
- type StorageService
Constants ¶
View Source
const (
DATATYPE_EXTEND = 128
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuStorageService ¶
type MenuStorageService struct {
// contains filtered or unexported fields
}
func NewMenuStorageService ¶
func NewMenuStorageService(dbDir string, resourceDir string) *MenuStorageService
func (*MenuStorageService) Close ¶
func (ms *MenuStorageService) Close() error
func (*MenuStorageService) EnsureDbDir ¶
func (ms *MenuStorageService) EnsureDbDir() error
func (*MenuStorageService) GetPersister ¶
func (*MenuStorageService) GetResource ¶
func (*MenuStorageService) GetStateStore ¶
func (*MenuStorageService) GetUserdataDb ¶
func (*MenuStorageService) WithGettext ¶
func (ms *MenuStorageService) WithGettext(path string, lns []lang.Language) *MenuStorageService
WithGettext triggers use of gettext for translation of templates and menus.
The first language in `lns` will be used as default language, to resolve node keys to language strings.
If `lns` is an empty array, gettext will not be used.
type SimpleStorageProvider ¶
type SimpleStorageProvider struct {
*Storage
}
func (*SimpleStorageProvider) Close ¶
func (p *SimpleStorageProvider) Close() error
Click to show internal directories.
Click to hide internal directories.