package
0.1.2
Repository: https://github.com/go-advanced-admin/admin.git
Documentation: pkg.go.dev

# Functions

GetAppsWithReadPermissions returns apps for which the user has read permissions.
GetErrorHTML generates an HTML string representing an error message with the given code and error.
GetModelsWithReadPermissions returns models for which the user has read permissions.
NewAdminPanel creates a new admin panel with the given ORM integrator, web integrator, permission function, and configuration.
NewDefaultAdminConfig returns a new AdminConfig with default settings.
No description provided by the author

# Constants

CreateAction represents create permissions.
DeleteAction represents delete permissions.
LogViewAction represents log viewing permissions.
ReadAction represents read permissions.
UpdateAction represents update permissions.

# Variables

DefaultAdminConfig provides default configuration settings for the admin panel.

# Structs

AdminConfig holds configuration settings for the admin panel.
AdminPanel represents the admin panel, which manages apps, models, permissions, and configuration.
App represents an application within the admin panel, grouping related models together.
No description provided by the author
FieldConfig holds configuration for a model field in the admin panel.
Instance represents a single instance of a model in the admin panel.
Model represents a registered model within an app in the admin panel.
ModelAddForm represents the form used to add a new instance of a model.
ModelEditForm represents the form used to edit an existing instance of a model.
NavBarItem represents an item in the navigation bar.
PermissionRequest represents a request to check permissions for a specific action.
Permissions holds the permissions for a specific operation.

# Interfaces

AdminFormFieldInterface allows a model to customize form fields for add and edit operations.
AdminInstanceReprInterface allows customizing the string representation of an instance.
No description provided by the author
No description provided by the author
No description provided by the author
ORMIntegrator defines the interface for integrating ORMs with the admin panel.
No description provided by the author
WebIntegrator defines the interface for integrating web frameworks with the admin panel.

# Type aliases

Action represents an action type for permissions.
HandlerFunc represents a handler function used in the admin panel routes.
NavBarGenerator defines a function type for generating navigation bar items.
PermissionFunc defines a function type for checking permissions.
UserFetchFunction defines a function type for fetching user information from the context.