Documentation
¶
Overview ¶
Package gomelon provides a lightweight framework for building web services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application is the default gomelon application which supports server command.
func (*Application) Initialize ¶
func (app *Application) Initialize(bootstrap *core.Bootstrap)
Initializes the application bootstrap.
func (*Application) Name ¶
func (app *Application) Name() string
func (*Application) Run ¶
func (app *Application) Run(interface{}, *core.Environment) error
When the application runs, this is called after the Bundles are run. Override it to add handlers, tasks, etc. for your application.
func (*Application) SetName ¶
func (app *Application) SetName(name string)
type CheckCommand ¶
type CheckCommand struct {
ConfigurationCommand
}
func (*CheckCommand) Description ¶
func (c *CheckCommand) Description() string
func (*CheckCommand) Name ¶
func (c *CheckCommand) Name() string
type Configuration ¶
Configuration is the default configuration that implements core.Configuration interface.
func (*Configuration) LoggingFactory ¶
func (c *Configuration) LoggingFactory() core.LoggingFactory
func (*Configuration) MetricsFactory ¶
func (c *Configuration) MetricsFactory() core.MetricsFactory
func (*Configuration) ServerFactory ¶
func (c *Configuration) ServerFactory() core.ServerFactory
type ConfigurationCommand ¶
type ConfigurationCommand struct { // Configuration is the original configuration provided by application. Configuration interface{} // contains filtered or unexported fields }
ConfigurationCommand parses configuration.
type EnvironmentCommand ¶
type EnvironmentCommand struct { ConfigurationCommand Environment *core.Environment }
EnvironmentCommand creates a new Environment from provided Bootstrap.
type ServerCommand ¶
type ServerCommand struct { EnvironmentCommand Server core.Server }
ServerCommand implements Command.
func (*ServerCommand) Description ¶
func (command *ServerCommand) Description() string
Description returns description of the ServerCommand.
func (*ServerCommand) Name ¶
func (command *ServerCommand) Name() string
Name returns name of the ServerCommand.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package assets provides a bundle for serving static asset files.
|
Package assets provides a bundle for serving static asset files. |
Package configuration provides JSON and YAML support for gomelon configuration.
|
Package configuration provides JSON and YAML support for gomelon configuration. |
Package core provides APIs and basic behaviors for a server stack like Dropwizard.
|
Package core provides APIs and basic behaviors for a server stack like Dropwizard. |
Package debug adds debug endpoint to admin page.
|
Package debug adds debug endpoint to admin page. |
example
|
|
Package logging provides logging configuration for applications.
|
Package logging provides logging configuration for applications. |
Package metrics provides metrics configuration for applications.
|
Package metrics provides metrics configuration for applications. |
Package rest provides RESTful support for applications.
|
Package rest provides RESTful support for applications. |
Package server supports dynamic routes.
|
Package server supports dynamic routes. |
filter
Package filter provides an API to intercept HTTP requests and responses.
|
Package filter provides an API to intercept HTTP requests and responses. |
logging
Package logging provides a logger for HTTP requests as a filter.
|
Package logging provides a logger for HTTP requests as a filter. |
recovery
Package recovery provides a filter which can recover panics.
|
Package recovery provides a filter which can recover panics. |
Package util provides various utilities for gomelon applications.
|
Package util provides various utilities for gomelon applications. |
Package validation provides validator for applications.
|
Package validation provides validator for applications. |