Documentation ¶
Index ¶
- type 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
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func NewDatabase() *Database
func (*Database) Disconnect ¶
func (this *Database) Disconnect()
func (*Database) GetImportType ¶
func (*Database) RemoveImportType ¶
func (*Database) SetImportType ¶
Click to show internal directories.
Click to hide internal directories.