Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is a thin abstraction used to initialize all the dependencies, db connections, and GRPC server/clients. Could return an error if any of described above steps failed.
func New ¶
New constructs new App with provided arguments. NOTE: than neither cfg or log can't be nil or App will panic.
func (*App) GracefulStop ¶
func (a *App) GracefulStop()
GracefulStop method gracefully stop the server. It listens to the OS sigals. After it receives signal it terminates all currently active servers, client, connections (if any) and gracefully exits.
Click to show internal directories.
Click to hide internal directories.