Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Service
New creates a new instance of a Service with a logger the minimal required middlewares(Recover, Logger) and with the routes with the handlers IsAlive(/healthz/alive) and Prometheus (/metrics)
func (*Service) Run ¶
Run creates a new go routine that will start the server execution. It only requires the server port and a terminateCallback function that will be executed when the service starts the shutdown routine and it should handle things like stop receiving new events, or disconnect database connections, or flushing pre allocated memory.
Click to show internal directories.
Click to hide internal directories.