Documentation ¶
Overview ¶
The app package contains your local application object. It uses an object oriented model to implement a default application, and provides hooks for you to customize its behavior. Web applications can grow in complicated ways, and this is the main place you will customize how the server itself behaves.
Index ¶
Constants ¶
View Source
const LocalContextKey = goradd.ContextKey("app.local")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
app.Application
}
func MakeApplication ¶
func MakeApplication() *Application
Create the application object and related objects You can potentially read command line params and make other versions of the app for testing purposes
func (*Application) Init ¶
func (a *Application) Init()
func (*Application) MakeServerMux ¶
func (a *Application) MakeServerMux() *http.ServeMux
func (*Application) RunWebServer ¶
func (a *Application) RunWebServer() (err error)
type LocalContext ¶
type LocalContext struct { }
LocalContext contains the items you want available to
func GetLocalContext ¶ added in v0.12.0
func GetLocalContext(ctx context.Context) *LocalContext
Click to show internal directories.
Click to hide internal directories.