mirror of
https://github.com/elyby/chrly.git
synced 2024-11-17 02:32:59 +05:30
21 lines
392 B
Go
21 lines
392 B
Go
package di
|
|
|
|
import (
|
|
"github.com/goava/di"
|
|
|
|
dispatcherModule "github.com/elyby/chrly/dispatcher"
|
|
"github.com/elyby/chrly/http"
|
|
"github.com/elyby/chrly/mojangtextures"
|
|
)
|
|
|
|
var dispatcher = di.Options(
|
|
di.Provide(newDispatcher,
|
|
di.As(new(http.Emitter)),
|
|
di.As(new(mojangtextures.Emitter)),
|
|
),
|
|
)
|
|
|
|
func newDispatcher() dispatcherModule.EventDispatcher {
|
|
return dispatcherModule.New()
|
|
}
|