Browse Source

En cours de développement

master
losyme 10 months ago
parent
commit
fe40c6fa36
  1. 7
      go.mod
  2. 14
      go.sum
  3. 13
      internal/application/application.go
  4. 2
      internal/application/events.go

7
go.mod

@ -6,15 +6,16 @@ require (
forge.chapril.org/losyme/application v0.0.0-20211008200819-b014e639a171
forge.chapril.org/losyme/cmdline v0.0.0-20211010173716-509a4c1f872e
forge.chapril.org/losyme/config v0.0.0-20211005163519-b38ce8696276
forge.chapril.org/losyme/minikit v0.0.0-20211010173913-48573a549427
forge.chapril.org/losyme/minikit v0.0.0-20211011130323-62377a4c4cdf
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf
github.com/gorilla/mux v1.8.0
)
require (
forge.chapril.org/eckmuhl/context v0.0.0-20211010163718-0742c5d7087c // indirect
forge.chapril.org/eckmuhl/router v0.0.0-20211010164023-a12c003438f7 // indirect
forge.chapril.org/eckmuhl/server v0.0.0-20211011123843-d223bfacbad9 // indirect
forge.chapril.org/losyme/buffer v0.0.0-20211003203540-771701f5a518 // indirect
forge.chapril.org/losyme/crypto v0.0.0-20211003213528-e97d4ebea720 // indirect
forge.chapril.org/losyme/dune v0.0.0-20211003204645-53703190a1b3 // indirect
forge.chapril.org/losyme/errors v0.0.0-20211003204336-ad5510c24b40 // indirect
forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae // indirect
forge.chapril.org/losyme/logger v0.0.0-20211005171545-68273525f4af // indirect

14
go.sum

@ -1,3 +1,9 @@
forge.chapril.org/eckmuhl/context v0.0.0-20211010163718-0742c5d7087c h1:X5LoqoVwBRU7nUliXNVS/yXcgoR9AUSsgCvJvTk08Ak=
forge.chapril.org/eckmuhl/context v0.0.0-20211010163718-0742c5d7087c/go.mod h1:mLBQDTayRooyfmrjPQWbIFobAIclOW3ERaikGuQLiUA=
forge.chapril.org/eckmuhl/router v0.0.0-20211010164023-a12c003438f7 h1:eVBWbgEpLqGjrGYlSniExbLt2AnEbk5Ab8nWQXmAxIw=
forge.chapril.org/eckmuhl/router v0.0.0-20211010164023-a12c003438f7/go.mod h1:xO6y8Gc6IABsLJaZyl9MmmksISqhPTx0JKjZcQCS3wk=
forge.chapril.org/eckmuhl/server v0.0.0-20211011123843-d223bfacbad9 h1:4MCKcgM4YcTzP4VfV3mxW90wVAjn+XHXgKNy5yfwd24=
forge.chapril.org/eckmuhl/server v0.0.0-20211011123843-d223bfacbad9/go.mod h1:Q/3VgjhCohrpGO+d+cO6762XVpUnkafxoODke0PcFUE=
forge.chapril.org/losyme/application v0.0.0-20211008200819-b014e639a171 h1:T8MQXGNCs1AsjtIQMYw1gjp0g4H9Frflosm6kkY8e7g=
forge.chapril.org/losyme/application v0.0.0-20211008200819-b014e639a171/go.mod h1:olQo5n5tnBRHq0wcc0lNbymvsXdTuYaCjNfd2d/+01w=
forge.chapril.org/losyme/buffer v0.0.0-20211003203540-771701f5a518 h1:B7wu0DWUwpt0Mw/VTuWQZikhV/VD6kc2iJWbIY+jgEM=
@ -8,24 +14,20 @@ forge.chapril.org/losyme/config v0.0.0-20211005163519-b38ce8696276 h1:xmdFs2aJdk
forge.chapril.org/losyme/config v0.0.0-20211005163519-b38ce8696276/go.mod h1:Oacy9PnlGYriSyqQW5dgo4vQMBlu5lW77kUssmc491U=
forge.chapril.org/losyme/crypto v0.0.0-20211003213528-e97d4ebea720 h1:tMwzjPmGvBb5/5Cx0OIPKqT9zMMR6gQn6398rwT0ghc=
forge.chapril.org/losyme/crypto v0.0.0-20211003213528-e97d4ebea720/go.mod h1:zSawWghP8cyqaQNOtKBAWGfAeR93uAyHMqpaXtZJsF8=
forge.chapril.org/losyme/dune v0.0.0-20211003204645-53703190a1b3 h1:mVMwpyuzXv5+/5lIbX7WwTbO8RVek/gFFJHSp44tvS0=
forge.chapril.org/losyme/dune v0.0.0-20211003204645-53703190a1b3/go.mod h1:QheUQV1zNMzW1RSnVyuTqn0VVS/mgtz7FfMdY7ekvao=
forge.chapril.org/losyme/errors v0.0.0-20211003204336-ad5510c24b40 h1:EoVVFHoIsWRlecHmXP4kx3ALchz5DAfNwso3gcl/Jbk=
forge.chapril.org/losyme/errors v0.0.0-20211003204336-ad5510c24b40/go.mod h1:saYfIRBW9zjiCik+/+5ZaajMEnTPBNI00lF9EnO+2kM=
forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae h1:RdYWXKy+OQNJueb4Qqqo7sL4OY3/TpfUvmoIoH8ua9E=
forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae/go.mod h1:wnVjwnCO2vFLLZ1EgFuFws1n8XLluufsGsdozGYSA7c=
forge.chapril.org/losyme/logger v0.0.0-20211005171545-68273525f4af h1:Eun7tisbfRh2vUA6tfn2wlpYjbla8LElilEBUNSp8p8=
forge.chapril.org/losyme/logger v0.0.0-20211005171545-68273525f4af/go.mod h1:a3fN8yTjq5S/ramr03hIkutKM/35UsijUgRNKHjjlMU=
forge.chapril.org/losyme/minikit v0.0.0-20211010173913-48573a549427 h1:5XFwm7PpiaZHUqLX9Uln4J9/BRnwAyXFBMGQqVkIP9E=
forge.chapril.org/losyme/minikit v0.0.0-20211010173913-48573a549427/go.mod h1:JgdYG7Mh1fSB/ym988tUzTgzBUfA33zVywv5yNVY4Cc=
forge.chapril.org/losyme/minikit v0.0.0-20211011130323-62377a4c4cdf h1:QTQqyaqJhN2XDj6dPsSc0vG7RyPYAZrW4yWHUAAtfdU=
forge.chapril.org/losyme/minikit v0.0.0-20211011130323-62377a4c4cdf/go.mod h1:lxNZ/75KRyydbXJqeYOzZHkKZ/e1L2XDYSY2WEaLEvo=
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf h1:5OIlwVBTdvjCXh2JHAh5rq8FgSe1lXuuKDFtO/ZRaRM=
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf/go.mod h1:VNjFKl0Q2vvLDnR9tdNdTIZDLQNlR+gcIGNf2aIYv3o=
forge.chapril.org/losyme/util v0.0.0-20210914170439-20572e6207bf h1:JZQLbcldf8q/o5OjaYlcNCX/dA1oshGnY6YM2VidAtI=
forge.chapril.org/losyme/util v0.0.0-20210914170439-20572e6207bf/go.mod h1:lKYvkuBOTU3E2HuQZDh4ZSA4u3VcFopQbdPUKaHGHEk=
forge.chapril.org/losyme/uuid v0.0.0-20211007082235-8d502169e034 h1:4NMOPXxwRiXS7wltj2ZZmMO1nFRMPmG1dXK4Ta4MtiM=
forge.chapril.org/losyme/uuid v0.0.0-20211007082235-8d502169e034/go.mod h1:AgvbvGzTkQkbiM+s9eVhvLUSHbA0V6N+q5oBFI2v0LA=
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/mitchellh/mapstructure v1.4.2 h1:6h7AQ0yhTcIsmFmnAwQls75jp2Gzs4iB8W7pjMO+rqo=

13
internal/application/application.go

@ -9,7 +9,6 @@ package application
import (
"forge.chapril.org/losyme/application"
"forge.chapril.org/losyme/minikit"
"github.com/gorilla/mux"
"forge.chapril.org/dune/dune/internal/components"
)
@ -22,13 +21,11 @@ type Application struct {
minikit *minikit.Kit
components *components.Components
clFlags *clFlags
router *mux.Router
}
func New(name, version, builtAt string, args []string) *Application {
app := &Application{
clFlags: &clFlags{},
router: mux.NewRouter(),
}
kit := minikit.New(&minikit.Config{
@ -38,14 +35,14 @@ func New(name, version, builtAt string, args []string) *Application {
"config",
"crypto",
"logger",
"router",
"scheduler",
"server",
},
CmdLineArgs: args,
CmdLineInit: app.cmdlineInitialize,
ConfigInit: app.configInitialize,
SchedulerCb: app.messageHandler,
ServerHandler: app.router,
CmdLineArgs: args,
CmdLineInit: app.cmdlineInitialize,
ConfigInit: app.configInitialize,
SchedulerCb: app.eventManager,
})
app.minikit = kit

2
internal/application/events.go

@ -8,7 +8,7 @@ package application
import "forge.chapril.org/losyme/scheduler"
func (app *Application) messageHandler(_ *scheduler.Message) {}
func (app *Application) eventManager(_ *scheduler.Message) {}
/*
######################################################################################################## @(°_°)@ #######

Loading…
Cancel
Save