Documentation
¶
Overview ¶
Package seed stores the demo data set a development database starts from.
Index ¶
- Constants
- func Media(ctx context.Context, library MediaLibrary, store media.Store, ...) error
- func PageType() content.Type
- func Pages(ctx context.Context, store content.Store, types *content.Registry, ...) error
- func Posts(ctx context.Context, store content.Store, types *content.Registry, ...) error
- func Types(ctx context.Context, types *content.Registry) error
- type MediaLibrary
Constants ¶
View Source
const ( AdminEmail = "admin@example.com" AdminName = "Admin" AdminPassword = "password1234" )
Demo credentials stored by the seed subcommand, for development only.
View Source
const PageTypeKey = "page"
PageTypeKey names the content type the demo pages belong to.
Variables ¶
This section is empty.
Functions ¶
func PageType ¶ added in v0.4.0
PageType returns the content type the demo pages are registered under.
func Pages ¶ added in v0.4.0
func Pages(ctx context.Context, store content.Store, types *content.Registry, users gouncer.Store) error
Pages stores the demo pages the site does not already hold.
Types ¶
Click to show internal directories.
Click to hide internal directories.