admin

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 11 Imported by: 0

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

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 BoolPtr added in v0.16.0

func BoolPtr(v bool) *bool

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 IntPtr

func IntPtr(v int) *int

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

func RegisterMessageFactory[T any](bus *CommandBus, name string, build func(payload map[string]any, ids []string) (T, error)) error

func WithThemeSelection

func WithThemeSelection(ctx context.Context, selector ThemeSelector) context.Context

Types

type Action

type Action = core.Action

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 Admin

type Admin = core.Admin

func New

func New(cfg Config, deps Dependencies) (*Admin, error)

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

func WithBunSearchColumns[T any](columns ...string) BunRepositoryOption[T]

type CLIConfig added in v0.12.0

type CLIConfig = core.CLIConfig

type CLIGroup added in v0.12.0

type CLIGroup = core.CLIGroup

type CMSBlock

type CMSBlock = core.CMSBlock

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 CMSPage

type CMSPage = core.CMSPage

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 Config

type Config = core.Config

type Dashboard

type Dashboard = core.Dashboard

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

func NewDebugLogHandler(collector *DebugCollector, next slog.Handler) *DebugLogHandler

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 Field

type Field = core.Field

type Filter

type Filter = core.Filter

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

func WithAuthErrorHandler

func WithAuthErrorHandler(handler func(router.Context, error) error) 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 MediaItem

type MediaItem = core.MediaItem

type MemoryRepository

type MemoryRepository = core.MemoryRepository

func NewMemoryRepository

func NewMemoryRepository() *MemoryRepository
type MenuItem = core.MenuItem

type Module

type Module = core.Module

type ModuleContext

type ModuleContext = core.ModuleContext

type ModuleManifest

type ModuleManifest = core.ModuleManifest
type Navigation = core.Navigation

func NewNavigation

func NewNavigation(menuSvc CMSMenuService, authorizer Authorizer) *Navigation
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 Option

type Option = core.Option

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 PanelTab added in v0.2.0

type PanelTab = core.PanelTab

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

Jump to

Keyboard shortcuts

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