Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Services ¶
type Services struct {
DB *orm.Manager
Log log.Logger
Cache *cache.Manager
Crypto crypto.Encryptor
Events events.Dispatcher
Queue queue.Driver
Storage *storage.Manager
Scheduler *scheduler.Scheduler
Mail mail.Mailer
Exceptions *exceptions.Handler
Validator validation.Validator
// These use `any` to break import cycles (auth/csrf/view import router).
// Use typed accessors on velocity.App or router.Context.
Auth any // *auth.Manager
CSRF any // *csrf.CSRF
View any // *view.Engine
}
Services holds references to all framework service instances. Both the root velocity package and the router package import this leaf package, avoiding import cycles.
Fields typed as `any` break import cycles for packages that import the router package (auth, csrf, view). The root velocity.App and the router.Context provide typed accessors for these.
Click to show internal directories.
Click to hide internal directories.