mirror of
https://github.com/elyby/chrly.git
synced 2024-11-26 16:51:59 +05:30
3f81a0c18a
Implemented graceful server shutdown Extract records manipulating API into separate handlers group
21 lines
252 B
Go
21 lines
252 B
Go
package di
|
|
|
|
import "github.com/goava/di"
|
|
|
|
func New() (*di.Container, error) {
|
|
container, err := di.New(
|
|
config,
|
|
dispatcher,
|
|
logger,
|
|
db,
|
|
mojangTextures,
|
|
handlers,
|
|
server,
|
|
)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return container, nil
|
|
}
|