Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultName = "genki" HttpDebugPortConfigKey = "http-debug-port" HttpDebugDisableConfigKey = "http-debug-disable" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application interface { // Name of the application Name() string // Run the application. This is a blocking call and will only return if the // server is shut-down or an error occurred. Run() error // Opts returns the current options Opts() Options // AddServer registers a new server with the application AddServer(server server.Server) // RegisterBroker registers a message broker implementation (AMQP, NATS, ...) RegisterBroker(broker broker.Broker) }
Application defines the application interface. It's designed to be simple and straightforward.
func NewApplication ¶
func NewApplication(options ...Option) Application
type Option ¶
type Option func(options *Options)
func DisableDebugHttpServer ¶
func DisableDebugHttpServer() Option
func HttpDebugServerPort ¶ added in v0.4.7
Click to show internal directories.
Click to hide internal directories.