Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrUniqueViolation = errors.New("unique violation") )
View Source
var ErrPageNotFound = errors.New("page not found")
View Source
var ErrSiteNotFound = errors.New("site not found")
Functions ¶
func LifeSpanSort ¶
func NewThemeRepository ¶ added in v0.0.9
func NewThemeRepository(r Template) theme.Repository
Types ¶
type Configuration ¶
type Configuration interface { Load(ctx context.Context) (model.Configuration, error) Save(ctx context.Context, m *model.Configuration) error }
type Page ¶
type Page interface { FindByParentID(ctx context.Context, parentID int64, now time.Time) ([]model.Page, error) FindByPattern(ctx context.Context, siteID int64, pattern string, now time.Time) (model.Page, error) FindByAlias(ctx context.Context, siteID int64, alias string, now time.Time) (model.Page, error) FindByURL(ctx context.Context, siteID int64, url string, now time.Time) (model.Page, error) // contains filtered or unexported methods }
type Repository ¶
type ThemeRepository ¶ added in v0.0.9
type ThemeRepository struct {
// contains filtered or unexported fields
}
func (ThemeRepository) FindByName ¶ added in v0.0.9
Source Files ¶
Click to show internal directories.
Click to hide internal directories.