Versions in this module Expand all Collapse all v0 v0.1.1 Nov 19, 2024 v0.1.0 Nov 19, 2024 v0.0.9 Nov 19, 2024 v0.0.8 Nov 11, 2024 v0.0.7 Nov 8, 2024 v0.0.6 Nov 7, 2024 v0.0.5 Nov 6, 2024 v0.0.4 Nov 6, 2024 v0.0.3 Nov 5, 2024 v0.0.2 Nov 5, 2024 v0.0.1 Nov 5, 2024 Changes in this version + const Host + const HostByLocale + const HostWithPath + const HostWithPathByLocale + const MetaEquiv + const MetaName + const MetaProperty + const PageAliasPrefix + const PageCMS + const PageError4xx + const PageError5xx + const PageErrorInternal + const PageErrorPrefix + const PageInternalCreate + const PageInternalPrefix + const TemplateDB + const TemplateFS + var ErrOTPNotValid = errors.New("otp: is not valid") + var ErrPasswordIsEmpty = errors.New("password: is empty") + var ErrPasswordLong = errors.New("password: is too long, must be at most 64 characters long") + var ErrPasswordNotValid = errors.New("password: is not valid") + var ErrPasswordShort = errors.New("password: is too short, must be at least 8 characters long") + var MetaTypes = []MetaType + var MultisiteStrategies = []MultisiteStrategy + var TemplateTypes = []TemplateType + type Admin struct + Avatar string + Created time.Time + Email string + ID int64 + OTP OTP + Password Password + Roles []string + Salt string + Updated time.Time + func (a Admin) GetID() int64 + func (a Admin) OTPKey(issuer string) (string, error) + func (a Admin) ValidateOTP(password string) error + func (a Admin) ValidatePassword(password string) error + func (a Admin) WithRandomSalt() Admin + type Configuration struct + Additional map[string]string + CatchErrors map[string][]int + Debug bool + FallbackLocale string + IgnoreRequestPatterns []string + IgnoreRequestURIs []string + Multisite MultisiteStrategy + func NewConfiguration() Configuration + func (c Configuration) IgnorePattern(pattern string) bool + func (c Configuration) IgnoreURI(uri string) bool + func (c Configuration) With(other Configuration) Configuration + type Menu struct + Created time.Time + Enabled bool + Handle string + ID int64 + Name string + Node *Node + NodeID *int64 + Updated time.Time + func (m Menu) GetID() int64 + func (m Menu) String() string + func (m Menu) WithFixedHandle() Menu + type Meta struct + Content string + Key string + Type MetaType + func (m Meta) Equal(another Meta) bool + type MetaType string + func (t MetaType) IsZero() bool + func (t MetaType) String() string + type MultisiteStrategy string + func (t MultisiteStrategy) IsZero() bool + func (t MultisiteStrategy) String() string + type Node struct + Ancestor bool + Attributes map[string]string + Children []*Node + ChildrenAttributes map[string]string + Created time.Time + Current bool + Display bool + DisplayChildren bool + ID int64 + Label string + LabelAttributes map[string]string + Level int + LinkAttributes map[string]string + Menu *Menu + Metadata map[string]string + Name string + Parent *Node + ParentID int64 + Path string + Position int + URI string + Updated time.Time + func (n Node) GetID() int64 + func (n Node) HasChildren() bool + func (n Node) IsRoot() bool + func (n Node) String() string + func (n Node) WithFixedPathAndLevel() Node + type OTP [otpSize]byte + func MustNewOTP() OTP + func NewOTP() (otp OTP, err error) + func (otp OTP) Compare(other OTP) int + func (otp OTP) IsZero() bool + func (otp OTP) String() string + func (otp OTP) Validate(password string) error + type Page struct + Alias string + Children []Page + Created time.Time + CustomURL string + Decorate bool + Expired *time.Time + Headers map[string]string + ID int64 + Javascript string + Metadata map[string]string + Metas []Meta + Name string + Parent *Page + ParentID *int64 + Pattern string + Position int + Published *time.Time + Site *Site + SiteID int64 + Slug string + Stylesheet string + Template string + Title string + URL string + Updated time.Time + func (p Page) GetID() int64 + func (p Page) IsCMS() bool + func (p Page) IsDynamic() bool + func (p Page) IsEnabled(now time.Time) bool + func (p Page) IsError() bool + func (p Page) IsHybrid() bool + func (p Page) IsInternal() bool + func (p Page) String() string + func (p Page) WithAlias(alias string) Page + func (p Page) WithError(pattern string) Page + func (p Page) WithFixedURL() Page + func (p Page) WithInternal(pattern string) Page + type Password []byte + func NewPassword(password string) (Password, error) + func (p Password) IsZero() bool + func (p Password) String() string + func (p Password) Validate(password string) error + type Site struct + Created time.Time + Expired *time.Time + Host string + ID int64 + IsDefault bool + Javascript string + Locale string + Metadata map[string]string + Metas []Meta + Name string + Published *time.Time + RelativePath string + Separator string + Stylesheet string + Title string + Updated time.Time + func (s Site) GetID() int64 + func (s Site) IsEnabled(now time.Time) bool + func (s Site) IsLocalhost() bool + func (s Site) String() string + func (s Site) URL() string + func (s Site) WithHost(scheme, host string) Site + type Template struct + Content string + Created time.Time + Enabled bool + ID int64 + Name string + Type TemplateType + Updated time.Time + func (t Template) Changed() time.Time + func (t Template) Code() []byte + func (t Template) GetID() int64 + func (t Template) String() string + type TemplateType string + func (t TemplateType) IsZero() bool + func (t TemplateType) String() string