Documentation ¶
Index ¶
- type Adapters
- type Block
- type Blocks
- type DistilleryAdapter
- type Pathbuilder
- func (pathbuilder *Pathbuilder) All(ctx context.Context, server *phpx.Server) (ids []string, err error)
- func (pathbuilder *Pathbuilder) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
- func (pathbuilder *Pathbuilder) Get(ctx context.Context, server *phpx.Server, id string) (xml string, err error)
- func (pathbuilder *Pathbuilder) GetAll(ctx context.Context, server *phpx.Server) (pathbuilders map[string]string, err error)
- type Prefixes
- func (prefixes *Prefixes) All(ctx context.Context, server *phpx.Server) ([]string, error)
- func (wisski *Prefixes) AllCached(ctx context.Context) (results []string, err error)
- func (prefixes *Prefixes) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
- func (prefixes *Prefixes) NoPrefix() bool
- func (wisski *Prefixes) Update(ctx context.Context) error
- type Requirements
- type Settings
- func (settings *Settings) Get(ctx context.Context, server *phpx.Server, key string) (value any, err error)
- func (settings *Settings) Set(ctx context.Context, server *phpx.Server, key string, value any) error
- func (settings *Settings) SetTrustedDomain(ctx context.Context, server *phpx.Server, domain string) error
- type Stats
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapters ¶
type Adapters struct { ingredient.Base Dependencies struct { PHP *php.PHP } }
Prefixes implements reading and writing prefix
func (*Adapters) CreateDistilleryAdapter ¶
type Blocks ¶
type Blocks struct { ingredient.Base Dependencies struct { PHP *php.PHP } }
type DistilleryAdapter ¶
type Pathbuilder ¶
type Pathbuilder struct { ingredient.Base Dependencies struct { PHP *php.PHP } }
func (*Pathbuilder) All ¶
func (pathbuilder *Pathbuilder) All(ctx context.Context, server *phpx.Server) (ids []string, err error)
All returns the ids of all pathbuilders in consistent order.
server is the server to fetch the pathbuilders from, any may be nil.
func (*Pathbuilder) Fetch ¶
func (pathbuilder *Pathbuilder) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
func (*Pathbuilder) Get ¶
func (pathbuilder *Pathbuilder) Get(ctx context.Context, server *phpx.Server, id string) (xml string, err error)
Get returns a single pathbuilder as xml. If it does not exist, it returns the empty string and nil error.
server is the server to fetch the pathbuilders from, any may be nil.
type Prefixes ¶
Prefixes implements reading and writing prefix
func (*Prefixes) All ¶
All returns the prefixes applying to this WissKI
server is an optional server to fetch prefixes from. server may be nil.
func (*Prefixes) Fetch ¶
func (prefixes *Prefixes) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
type Requirements ¶
type Requirements struct { ingredient.Base Dependencies struct { PHP *php.PHP } }
func (*Requirements) Fetch ¶
func (requirements *Requirements) Fetch(flags ingredient.FetcherFlags, target *status.WissKI) error
Fetch fetches information
func (*Requirements) Get ¶
func (requirements *Requirements) Get(ctx context.Context, server *phpx.Server) (data []status.Requirement, err error)
Create creates a new block with the given title and html content
type Settings ¶
type Settings struct { ingredient.Base Dependencies struct { PHP *php.PHP } }
type Stats ¶
type Stats struct { ingredient.Base Dependencies struct { PHP *php.PHP } }
func (*Stats) Fetch ¶
func (stats *Stats) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
type Theme ¶
type Theme struct { ingredient.Base Dependencies struct { PHP *php.PHP } }
Prefixes implements reading and writing prefix
func (*Theme) Fetch ¶
func (t *Theme) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)