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 ¶
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.