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(healthServer grpc_health_v1.HealthServer) error // Opts returns the current options Opts() Options // AddServer registers a new server with the application AddServer(server server.Server) // AddHttpServer registers a new http server with the application AddHttpServer(srv http.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 ¶
Click to show internal directories.
Click to hide internal directories.