helpers

package
v0.0.0-...-b20cf72 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(ctx echo.Context, statusCode int, t templ.Component) error

func SyncAcl

func SyncAcl(db *gorm.DB, modules *[]types.AclModule) error

Synchronize the ACL modules provided to the database

return an error if something in the insert operation goes wrong

@param db *gorm.DB - A pointer to the gorm DB instance

@param acls *[]AclModules - A pointer to a slice of Acl modules

func UnmarshalAcl

func UnmarshalAcl(acl *[]types.AclModule, reader io.Reader) error

Load the modules for the access control list from the reader into the &acl

Types

This section is empty.

Jump to

Keyboard shortcuts

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