MCPcopy
hub / github.com/writefreely/writefreely / Apper

Interface Apper

app.go:128–137  ·  view source on GitHub ↗

Apper is the interface for getting data into and out of a WriteFreely instance (or "App"). App returns the App for the current instance. LoadConfig reads an app configuration into the App, returning any error encountered. SaveConfig persists the current App configuration. LoadKeys reads the App'

Source from the content-addressed store, hash-verified

126// LoadKeys reads the App's encryption keys and loads them into its
127// key.Keychain.
128type Apper interface {
129 App() *App
130
131 LoadConfig() error
132 SaveConfig(*config.Config) error
133
134 LoadKeys() error
135
136 ReqLog(r *http.Request, status int, timeSince time.Duration) string
137}
138
139// App returns the App
140func (app *App) App() *App {

Callers 25

NewHandlerFunction · 0.65
UserMethod · 0.65
AdminMethod · 0.65
AdminApperMethod · 0.65
UserAllMethod · 0.65
WebErrorsMethod · 0.65
WebMethod · 0.65
InitializeFunction · 0.65
GenerateKeyFilesFunction · 0.65
CreateSchemaFunction · 0.65
MigrateFunction · 0.65

Implementers 1

Appapp.go

Calls

no outgoing calls

Tested by

no test coverage detected