Versions in this module Expand all Collapse all v0 v0.0.3 Feb 9, 2024 v0.0.1 Dec 19, 2023 Changes in this version + type Database struct + func NewDatabase() *Database + func (this *Database) Disconnect() + func (this *Database) GetImportType(ctx context.Context, id string) (importType model.ImportType, exists bool, err error) + func (this *Database) RemoveImportType(ctx context.Context, id string) error + func (this *Database) SetImportType(ctx context.Context, importType model.ImportType) error + type Security struct + func NewSecurity() *Security + func (this *Security) CheckBool(jwt auth.Token, kind string, id string, action model.AuthAction) (allowed bool, err error) + func (this *Security) CheckMultiple(jwt auth.Token, kind string, ids []string, action model.AuthAction) (map[string]bool, error) + func (this *Security) GetAsUser(jwt auth.Token, url string, result *[]interface{}) (err error) + func (this *Security) Set(kind string, id string, access bool)