Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App struct consists of our application structure
func (*App) RegisterRoutes ¶
RegisterRoutes registers all the routes associated with this application.
type ConfigOption ¶
type ConfigOption struct {
// contains filtered or unexported fields
}
ConfigOption will be a set of configuration options for APP
func WithConfiguration ¶
func WithConfiguration(config *config.Config) ConfigOption
WithConfiguration will register a configuration of type *config.Config
func WithHTMLTemplateDir ¶
func WithHTMLTemplateDir(htmlTemplateDir string) ConfigOption
WithHTMLTemplateDir will provide the base dir to load templates from pkger
func WithProxyURL ¶
func WithProxyURL(proxyPrefix string) ConfigOption
WithProxyURL returns a proxy on wihch we will register our application This could look like "/production/prefix/stuff"
func WithStaticAssetDir ¶
func WithStaticAssetDir(staticAssetDir string) ConfigOption
WithStaticAssetDir will provide the base dir to load static assets from pkger
Click to show internal directories.
Click to hide internal directories.