Versions in this module Expand all Collapse all v0 v0.1.0 Oct 16, 2026 Changes in this version + var Schema string + var ViewOnly = Permissions + func Register[M any](s *Site, m Model[M]) error + type Authenticator = core.Authenticator + type Choice struct + Label string + Value string + func Choices(values ...string) []Choice + type Column = postgres.Column + type Config struct + AuditLog bool + Auth Authenticator + BasePath string + DB DB + Logger *slog.Logger + Title string + type DB interface + Begin func(ctx context.Context) (pgx.Tx, error) + Exec func(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error) + Query func(ctx context.Context, sql string, args ...any) (pgx.Rows, error) + QueryRow func(ctx context.Context, sql string, args ...any) pgx.Row + type ExtraField struct + Help string + Label string + Name string + RequiredOnAdd bool + Widget Widget + type Field struct + Choices []Choice + Column postgres.Column + Help string + Label string + Widget Widget + type FieldErrors map[string]string + func (e FieldErrors) Error() string + type ForeignKey struct + Column postgres.Column + Model string + type Inline struct + Column postgres.Column + Limit int + Model string + type LoginProvider = core.LoginProvider + type Model struct + BeforeSave func(ctx context.Context, m *M, save Save) error + Computed []postgres.Column + Display func(M) string + Extra []ExtraField + Fields []Field + ForeignKeys []ForeignKey + Group string + Hidden []postgres.Column + Inlines []Inline + Label string + ListDisplay []postgres.Column + ListFilter []postgres.Column + Ordering []Order + PageSize int + Permissions Permissions + Plural string + ReadOnly []postgres.Column + SearchFields []postgres.Column + Slug string + Table postgres.Table + Validate func(ctx context.Context, m *M) error + type Order struct + Column postgres.Column + Desc bool + func Asc(c postgres.Column) Order + func Desc(c postgres.Column) Order + type Permissions struct + DisableAdd bool + DisableChange bool + DisableDelete bool + type Save struct + Adding bool + Extra map[string]string + type Site struct + func New(cfg Config) (*Site, error) + func (s *Site) BasePath() string + func (s *Site) DB() DB + func (s *Site) Handler() http.Handler + type User = core.User + type Widget int + const JSON + const Password + const Textarea + const WidgetDefault