App holds data and configuration for an individual WriteFreely instance.
| 67 | |
| 68 | // App holds data and configuration for an individual WriteFreely instance. |
| 69 | type App struct { |
| 70 | router *mux.Router |
| 71 | shttp *http.ServeMux |
| 72 | db *datastore |
| 73 | cfg *config.Config |
| 74 | cfgFile string |
| 75 | keys *key.Keychain |
| 76 | sessionStore sessions.Store |
| 77 | formDecoder *schema.Decoder |
| 78 | updates *updatesCache |
| 79 | |
| 80 | timeline *localTimeline |
| 81 | } |
| 82 | |
| 83 | // DB returns the App's datastore |
| 84 | func (app *App) DB() *datastore { |
nothing calls this directly
no outgoing calls
no test coverage detected