Documentation
¶
Overview ¶
Package admin provides the public facade for go-admin.
This package is intentionally thin: it forwards to the internal orchestrator implemented in `github.com/goliatone/go-admin/admin`.
Index ¶
- Constants
- Variables
- func BoolPtr(v bool) *bool
- func CaptureViewContext(collector *DebugCollector, viewCtx router.ViewContext) router.ViewContext
- func CaptureViewContextForRequest(collector *DebugCollector, c router.Context, viewCtx router.ViewContext) router.ViewContext
- func DebugRequestMiddleware(collector *DebugCollector) router.MiddlewareFunc
- func IntPtr(v int) *int
- func RegisterCommand[T any](bus *CommandBus, cmd command.Commander[T], runnerOpts ...runner.Option) (dispatcher.Subscription, error)
- func RegisterMessageFactory[T any](bus *CommandBus, name string, ...) error
- func WithThemeSelection(ctx context.Context, selector ThemeSelector) context.Context
- type Action
- type ActivityEntry
- type ActivityFilter
- type ActivityLogger
- type ActivityRecord
- type ActivityRecordLister
- type ActivitySink
- type ActivitySinkAdapter
- type Admin
- type AdminContext
- type AuthConfig
- type Authorizer
- type BunRecordMapper
- type BunRepositoryAdapter
- type BunRepositoryOption
- type CLIConfig
- type CLIGroup
- type CMSBlock
- type CMSBlockDefinition
- type CMSContent
- type CMSContentRepository
- type CMSContentService
- type CMSMenuService
- type CMSOptions
- type CMSPage
- type CMSPageRepository
- type CMSWidgetService
- type CommandBus
- type Config
- type Dashboard
- type DashboardLayout
- type DashboardProviderSpec
- type DashboardRenderer
- type DebugCollector
- type DebugConfig
- type DebugLayoutMode
- type DebugLogHandler
- type DebugModule
- type DebugQueryHook
- type DebugREPLConfig
- type DebugREPLOverrideStrategy
- type DebugREPLRequest
- type DebugREPLSession
- type DebugREPLSessionManager
- type DebugREPLSessionStore
- type DebugViewContextBuilder
- type DenyAllStrategy
- type Dependencies
- type ExportColumn
- type ExportDefinition
- type ExportHTTPRegistrar
- type ExportMetadata
- type ExportMetadataProvider
- type ExportRegistry
- type ExportRouteOptions
- type ExportRouteWrapper
- type FeatureKey
- type Field
- type Filter
- type GoAuthAuthenticator
- type GoAuthAuthenticatorOption
- type GoAuthAuthorizer
- type GoAuthAuthorizerConfig
- type GoCMSContainerAdapter
- type GoCMSMenuAdapter
- type GoUsersProfileStore
- type GoUsersRoleRepository
- type GoUsersUserRepository
- type InMemoryContentService
- type InMemoryDebugREPLSessionStore
- type InMemoryMenuService
- type ListOptions
- type MediaItem
- type MemoryRepository
- type MenuItem
- type Module
- type ModuleContext
- type ModuleManifest
- type Navigation
- type NavigationItem
- type NoopCLIHandler
- type Notification
- type NotificationService
- type Option
- type OrganizationMember
- type OrganizationRecord
- type PanelBuilder
- type PanelPermissions
- type PanelTab
- type PanelTabCollisionHandler
- type PanelTabPermissionEvaluator
- type PanelTabScope
- type PanelTabTarget
- type PreferenceLevel
- type PreferenceScope
- type PreferenceSnapshot
- type PreferenceTrace
- type PreferenceTraceLayer
- type PreferencesDeleteInput
- type PreferencesModule
- type PreferencesResolveInput
- type PreferencesStore
- type PreferencesUpsertInput
- type ProfileModule
- type ResolvedWidget
- type RoleAssignmentLookup
- type RolePanelRepository
- type RoleRepositoryLookup
- type SearchResult
- type SettingDefinition
- type SettingOption
- type SettingsBundle
- type SettingsScope
- type SignedTokenStrategy
- type StaticKeyStrategy
- type TenantMember
- type TenantRecord
- type TenantService
- type ThemeSelector
- type Translator
- type UUIDRoleAssignmentLookup
- type UserActivateMsg
- type UserArchiveMsg
- type UserDisableMsg
- type UserManagementService
- type UserProfile
- type UserSuspendMsg
- type WidgetArea
- type WidgetAreaDefinition
- type WidgetLayout
- type WidgetMetadata
Constants ¶
View Source
const ( FeatureDashboard = core.FeatureDashboard FeatureSearch = core.FeatureSearch FeatureCommands = core.FeatureCommands FeatureNotifications = core.FeatureNotifications FeatureMedia = core.FeatureMedia PreferenceLevelSystem = core.PreferenceLevelSystem PreferenceLevelTenant = core.PreferenceLevelTenant PreferenceLevelOrg = core.PreferenceLevelOrg PreferenceLevelUser = core.PreferenceLevelUser MenuItemTypeItem = core.MenuItemTypeItem MenuItemTypeGroup = core.MenuItemTypeGroup MenuItemTypeSeparator = core.MenuItemTypeSeparator PanelTabScopeList = core.PanelTabScopeList PanelTabScopeDetail = core.PanelTabScopeDetail PanelTabScopeForm = core.PanelTabScopeForm SettingsScopeSystem = core.SettingsScopeSystem SettingsScopeSite = core.SettingsScopeSite DebugLayoutStandalone = core.DebugLayoutStandalone DebugLayoutAdmin = core.DebugLayoutAdmin DebugPanelTemplate = core.DebugPanelTemplate DebugPanelSession = core.DebugPanelSession DebugPanelRequests = core.DebugPanelRequests DebugPanelSQL = core.DebugPanelSQL DebugPanelLogs = core.DebugPanelLogs DebugPanelConfig = core.DebugPanelConfig DebugPanelRoutes = core.DebugPanelRoutes DebugPanelCustom = core.DebugPanelCustom DebugPanelConsole = core.DebugPanelConsole DebugPanelShell = core.DebugPanelShell )
Variables ¶
View Source
var (
ErrNotFound = core.ErrNotFound
)
Functions ¶
func CaptureViewContext ¶ added in v0.14.0
func CaptureViewContext(collector *DebugCollector, viewCtx router.ViewContext) router.ViewContext
func CaptureViewContextForRequest ¶ added in v0.16.0
func CaptureViewContextForRequest(collector *DebugCollector, c router.Context, viewCtx router.ViewContext) router.ViewContext
func DebugRequestMiddleware ¶ added in v0.14.0
func DebugRequestMiddleware(collector *DebugCollector) router.MiddlewareFunc
func RegisterCommand ¶ added in v0.12.0
func RegisterCommand[T any](bus *CommandBus, cmd command.Commander[T], runnerOpts ...runner.Option) (dispatcher.Subscription, error)
func RegisterMessageFactory ¶ added in v0.12.0
Types ¶
type ActivityEntry ¶
type ActivityEntry = core.ActivityEntry
type ActivityFilter ¶
type ActivityFilter = core.ActivityFilter
type ActivityLogger ¶
type ActivityLogger = core.ActivityLogger
type ActivityRecord ¶
type ActivityRecord = core.ActivityRecord
type ActivityRecordLister ¶
type ActivityRecordLister = core.ActivityRecordLister
type ActivitySink ¶
type ActivitySink = core.ActivitySink
type ActivitySinkAdapter ¶
type ActivitySinkAdapter = core.ActivitySinkAdapter
func NewActivitySinkAdapter ¶
func NewActivitySinkAdapter(logger ActivityLogger, lister ActivityRecordLister) *ActivitySinkAdapter
type AdminContext ¶
type AdminContext = core.AdminContext
type AuthConfig ¶
type AuthConfig = core.AuthConfig
type Authorizer ¶
type Authorizer = core.Authorizer
type BunRecordMapper ¶
type BunRecordMapper[T any] = core.BunRecordMapper[T]
type BunRepositoryAdapter ¶
type BunRepositoryAdapter[T any] = core.BunRepositoryAdapter[T]
func NewBunRepositoryAdapter ¶
func NewBunRepositoryAdapter[T any](repo repository.Repository[T], opts ...BunRepositoryOption[T]) *BunRepositoryAdapter[T]
type BunRepositoryOption ¶
type BunRepositoryOption[T any] = core.BunRepositoryOption[T]
func WithBunRecordMapper ¶
func WithBunRecordMapper[T any](mapper BunRecordMapper[T]) BunRepositoryOption[T]
func WithBunSearchColumns ¶
type CMSBlockDefinition ¶
type CMSBlockDefinition = core.CMSBlockDefinition
type CMSContent ¶
type CMSContent = core.CMSContent
type CMSContentRepository ¶
type CMSContentRepository = core.CMSContentRepository
func NewCMSContentRepository ¶
func NewCMSContentRepository(content CMSContentService) *CMSContentRepository
type CMSContentService ¶
type CMSContentService = core.CMSContentService
type CMSMenuService ¶
type CMSMenuService = core.CMSMenuService
type CMSOptions ¶
type CMSOptions = core.CMSOptions
type CMSPageRepository ¶
type CMSPageRepository = core.CMSPageRepository
func NewCMSPageRepository ¶
func NewCMSPageRepository(content CMSContentService) *CMSPageRepository
type CMSWidgetService ¶
type CMSWidgetService = core.CMSWidgetService
type CommandBus ¶ added in v0.12.0
type CommandBus = core.CommandBus
type DashboardLayout ¶
type DashboardLayout = core.DashboardLayout
type DashboardProviderSpec ¶
type DashboardProviderSpec = core.DashboardProviderSpec
type DashboardRenderer ¶
type DashboardRenderer = core.DashboardRenderer
type DebugCollector ¶ added in v0.14.0
type DebugCollector = core.DebugCollector
type DebugConfig ¶ added in v0.14.0
type DebugConfig = core.DebugConfig
type DebugLayoutMode ¶ added in v0.16.0
type DebugLayoutMode = core.DebugLayoutMode
type DebugLogHandler ¶ added in v0.14.0
type DebugLogHandler = core.DebugLogHandler
func NewDebugLogHandler ¶ added in v0.14.0
type DebugModule ¶ added in v0.14.0
type DebugModule = core.DebugModule
func NewDebugModule ¶ added in v0.14.0
func NewDebugModule(config DebugConfig) *DebugModule
type DebugQueryHook ¶ added in v0.14.0
type DebugQueryHook = core.DebugQueryHook
func NewDebugQueryHook ¶ added in v0.14.0
func NewDebugQueryHook(collector *DebugCollector) *DebugQueryHook
func NewDebugQueryHookProvider ¶ added in v0.15.0
func NewDebugQueryHookProvider(provider func() *DebugCollector) *DebugQueryHook
type DebugREPLConfig ¶ added in v0.16.0
type DebugREPLConfig = core.DebugREPLConfig
type DebugREPLOverrideStrategy ¶ added in v0.16.0
type DebugREPLOverrideStrategy = core.DebugREPLOverrideStrategy
type DebugREPLRequest ¶ added in v0.16.0
type DebugREPLRequest = core.DebugREPLRequest
type DebugREPLSession ¶ added in v0.16.0
type DebugREPLSession = core.DebugREPLSession
type DebugREPLSessionManager ¶ added in v0.16.0
type DebugREPLSessionManager = core.DebugREPLSessionManager
type DebugREPLSessionStore ¶ added in v0.16.0
type DebugREPLSessionStore = core.DebugREPLSessionStore
type DebugViewContextBuilder ¶ added in v0.16.0
type DebugViewContextBuilder = core.DebugViewContextBuilder
type DenyAllStrategy ¶ added in v0.16.0
type DenyAllStrategy = core.DenyAllStrategy
type Dependencies ¶
type Dependencies = core.Dependencies
type ExportColumn ¶ added in v0.17.0
type ExportColumn = core.ExportColumn
type ExportDefinition ¶ added in v0.17.0
type ExportDefinition = core.ExportDefinition
type ExportHTTPRegistrar ¶ added in v0.17.0
type ExportHTTPRegistrar = core.ExportHTTPRegistrar
type ExportMetadata ¶ added in v0.17.0
type ExportMetadata = core.ExportMetadata
type ExportMetadataProvider ¶ added in v0.17.0
type ExportMetadataProvider = core.ExportMetadataProvider
type ExportRegistry ¶ added in v0.17.0
type ExportRegistry = core.ExportRegistry
type ExportRouteOptions ¶ added in v0.17.0
type ExportRouteOptions = core.ExportRouteOptions
type ExportRouteWrapper ¶ added in v0.17.0
type ExportRouteWrapper = core.ExportRouteWrapper
type FeatureKey ¶
type FeatureKey = core.FeatureKey
type GoAuthAuthenticator ¶
type GoAuthAuthenticator = core.GoAuthAuthenticator
func NewGoAuthAuthenticator ¶
func NewGoAuthAuthenticator(routeAuth *auth.RouteAuthenticator, cfg auth.Config, opts ...GoAuthAuthenticatorOption) *GoAuthAuthenticator
type GoAuthAuthenticatorOption ¶
type GoAuthAuthenticatorOption = core.GoAuthAuthenticatorOption
type GoAuthAuthorizer ¶
type GoAuthAuthorizer = core.GoAuthAuthorizer
func NewGoAuthAuthorizer ¶
func NewGoAuthAuthorizer(cfg GoAuthAuthorizerConfig) *GoAuthAuthorizer
type GoAuthAuthorizerConfig ¶
type GoAuthAuthorizerConfig = core.GoAuthAuthorizerConfig
type GoCMSContainerAdapter ¶
type GoCMSContainerAdapter = core.GoCMSContainerAdapter
func NewGoCMSContainerAdapter ¶
func NewGoCMSContainerAdapter(container any) *GoCMSContainerAdapter
type GoCMSMenuAdapter ¶
type GoCMSMenuAdapter = core.GoCMSMenuAdapter
func NewGoCMSMenuAdapter ¶
func NewGoCMSMenuAdapter(service cms.MenuService) *GoCMSMenuAdapter
type GoUsersProfileStore ¶
type GoUsersProfileStore = core.GoUsersProfileStore
func NewGoUsersProfileStore ¶
func NewGoUsersProfileStore(repo users.ProfileRepository, scopeResolver func(context.Context) users.ScopeFilter) *GoUsersProfileStore
type GoUsersRoleRepository ¶
type GoUsersRoleRepository = core.GoUsersRoleRepository
func NewGoUsersRoleRepository ¶
func NewGoUsersRoleRepository(registry users.RoleRegistry, scopeResolver func(context.Context) users.ScopeFilter) *GoUsersRoleRepository
type GoUsersUserRepository ¶
type GoUsersUserRepository = core.GoUsersUserRepository
func NewGoUsersUserRepository ¶
func NewGoUsersUserRepository(authRepo users.AuthRepository, inventory users.UserInventoryRepository, scopeResolver func(context.Context) users.ScopeFilter) *GoUsersUserRepository
type InMemoryContentService ¶
type InMemoryContentService = core.InMemoryContentService
func NewInMemoryContentService ¶
func NewInMemoryContentService() *InMemoryContentService
type InMemoryDebugREPLSessionStore ¶ added in v0.16.0
type InMemoryDebugREPLSessionStore = core.InMemoryDebugREPLSessionStore
type InMemoryMenuService ¶
type InMemoryMenuService = core.InMemoryMenuService
func NewInMemoryMenuService ¶
func NewInMemoryMenuService() *InMemoryMenuService
type ListOptions ¶
type ListOptions = core.ListOptions
type MemoryRepository ¶
type MemoryRepository = core.MemoryRepository
func NewMemoryRepository ¶
func NewMemoryRepository() *MemoryRepository
type ModuleContext ¶
type ModuleContext = core.ModuleContext
type ModuleManifest ¶
type ModuleManifest = core.ModuleManifest
type Navigation ¶
type Navigation = core.Navigation
func NewNavigation ¶
func NewNavigation(menuSvc CMSMenuService, authorizer Authorizer) *Navigation
type NavigationItem ¶
type NavigationItem = core.NavigationItem
type NoopCLIHandler ¶ added in v0.12.0
type NoopCLIHandler = core.NoopCLIHandler
type Notification ¶
type Notification = core.Notification
type NotificationService ¶
type NotificationService = core.NotificationService
type OrganizationMember ¶
type OrganizationMember = core.OrganizationMember
type OrganizationRecord ¶
type OrganizationRecord = core.OrganizationRecord
type PanelBuilder ¶
type PanelBuilder = core.PanelBuilder
type PanelPermissions ¶
type PanelPermissions = core.PanelPermissions
type PanelTabCollisionHandler ¶ added in v0.2.0
type PanelTabCollisionHandler = core.PanelTabCollisionHandler
type PanelTabPermissionEvaluator ¶ added in v0.2.0
type PanelTabPermissionEvaluator = core.PanelTabPermissionEvaluator
type PanelTabScope ¶ added in v0.2.0
type PanelTabScope = core.PanelTabScope
type PanelTabTarget ¶ added in v0.2.0
type PanelTabTarget = core.PanelTabTarget
type PreferenceLevel ¶ added in v0.11.0
type PreferenceLevel = core.PreferenceLevel
type PreferenceScope ¶ added in v0.11.0
type PreferenceScope = core.PreferenceScope
type PreferenceSnapshot ¶ added in v0.11.0
type PreferenceSnapshot = core.PreferenceSnapshot
type PreferenceTrace ¶ added in v0.11.0
type PreferenceTrace = core.PreferenceTrace
type PreferenceTraceLayer ¶ added in v0.11.0
type PreferenceTraceLayer = core.PreferenceTraceLayer
type PreferencesDeleteInput ¶ added in v0.11.0
type PreferencesDeleteInput = core.PreferencesDeleteInput
type PreferencesModule ¶
type PreferencesModule = core.PreferencesModule
func NewPreferencesModule ¶
func NewPreferencesModule() *PreferencesModule
type PreferencesResolveInput ¶ added in v0.11.0
type PreferencesResolveInput = core.PreferencesResolveInput
type PreferencesStore ¶ added in v0.11.0
type PreferencesStore = core.PreferencesStore
type PreferencesUpsertInput ¶ added in v0.11.0
type PreferencesUpsertInput = core.PreferencesUpsertInput
type ProfileModule ¶
type ProfileModule = core.ProfileModule
func NewProfileModule ¶
func NewProfileModule() *ProfileModule
type ResolvedWidget ¶
type ResolvedWidget = core.ResolvedWidget
type RoleAssignmentLookup ¶ added in v0.2.0
type RoleAssignmentLookup = core.RoleAssignmentLookup
type RolePanelRepository ¶
type RolePanelRepository = core.RolePanelRepository
func NewRolePanelRepository ¶
func NewRolePanelRepository(service *UserManagementService) *RolePanelRepository
type RoleRepositoryLookup ¶ added in v0.2.0
type RoleRepositoryLookup = core.RoleRepositoryLookup
type SearchResult ¶
type SearchResult = core.SearchResult
type SettingDefinition ¶
type SettingDefinition = core.SettingDefinition
type SettingOption ¶
type SettingOption = core.SettingOption
type SettingsBundle ¶
type SettingsBundle = core.SettingsBundle
type SettingsScope ¶
type SettingsScope = core.SettingsScope
type SignedTokenStrategy ¶ added in v0.16.0
type SignedTokenStrategy = core.SignedTokenStrategy
type StaticKeyStrategy ¶ added in v0.16.0
type StaticKeyStrategy = core.StaticKeyStrategy
type TenantMember ¶
type TenantMember = core.TenantMember
type TenantRecord ¶
type TenantRecord = core.TenantRecord
type TenantService ¶
type TenantService = core.TenantService
type ThemeSelector ¶
type ThemeSelector = core.ThemeSelector
type Translator ¶
type Translator = core.Translator
type UUIDRoleAssignmentLookup ¶ added in v0.2.0
type UUIDRoleAssignmentLookup = core.UUIDRoleAssignmentLookup
type UserActivateMsg ¶ added in v0.12.0
type UserActivateMsg = core.UserActivateMsg
type UserArchiveMsg ¶ added in v0.12.0
type UserArchiveMsg = core.UserArchiveMsg
type UserDisableMsg ¶ added in v0.12.0
type UserDisableMsg = core.UserDisableMsg
type UserManagementService ¶
type UserManagementService = core.UserManagementService
type UserProfile ¶
type UserProfile = core.UserProfile
type UserSuspendMsg ¶ added in v0.12.0
type UserSuspendMsg = core.UserSuspendMsg
type WidgetArea ¶
type WidgetArea = core.WidgetArea
type WidgetAreaDefinition ¶ added in v0.4.0
type WidgetAreaDefinition = core.WidgetAreaDefinition
type WidgetLayout ¶
type WidgetLayout = core.WidgetLayout
type WidgetMetadata ¶
type WidgetMetadata = core.WidgetMetadata
Click to show internal directories.
Click to hide internal directories.