Browse Source

En cours de développement

master
losyme 10 months ago
parent
commit
37bcc22d3b
  1. 1
      Taskfile.yml
  2. 2
      go.mod
  3. 4
      go.sum
  4. 4
      internal/api/api.go

1
Taskfile.yml

@ -23,6 +23,7 @@ tasks:
- go get -u forge.chapril.org/losyme/cmdline
- go get -u forge.chapril.org/losyme/config
- go get -u forge.chapril.org/losyme/errors
- go get -u forge.chapril.org/losyme/logger
- go get -u forge.chapril.org/losyme/minikit
- go get -u forge.chapril.org/losyme/scheduler
- go get -u forge.chapril.org/losyme/util

2
go.mod

@ -14,7 +14,7 @@ require (
forge.chapril.org/losyme/config v0.0.0-20211025142334-51a8a7a73a4f
forge.chapril.org/losyme/errors v0.0.0-20211003204336-ad5510c24b40
forge.chapril.org/losyme/logger v0.0.0-20211020125912-674a399f933c
forge.chapril.org/losyme/minikit v0.0.0-20211027123940-e67e2d5a7d34
forge.chapril.org/losyme/minikit v0.0.0-20211027202011-7c49ec237639
forge.chapril.org/losyme/scheduler v0.0.0-20211003204604-f14dada88faf
forge.chapril.org/losyme/util v0.0.0-20211025142031-fd89d32d86fe
forge.chapril.org/losyme/uuid v0.0.0-20211007082235-8d502169e034

4
go.sum

@ -30,8 +30,8 @@ forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae h1:RdYWXKy+OQN
forge.chapril.org/losyme/kvfmt v0.0.0-20211003204256-34ac32764dae/go.mod h1:wnVjwnCO2vFLLZ1EgFuFws1n8XLluufsGsdozGYSA7c=
forge.chapril.org/losyme/logger v0.0.0-20211020125912-674a399f933c h1:AsWWDqFMigGp33sHDqGdJVVACiPYcY1ChSmBN7olBrk=
forge.chapril.org/losyme/logger v0.0.0-20211020125912-674a399f933c/go.mod h1:a3fN8yTjq5S/ramr03hIkutKM/35UsijUgRNKHjjlMU=
forge.chapril.org/losyme/minikit v0.0.0-20211027123940-e67e2d5a7d34 h1:fPUWy9dd/wYH3GFx7LNrNpmm2+lwDzVdw8mJUnDLXJA=
forge.chapril.org/losyme/minikit v0.0.0-20211027123940-e67e2d5a7d34/go.mod h1:fJtI12paLqlhtYC/YsvCa9gR0zooxUxD3C7mGgO2z3I=
forge.chapril.org/losyme/minikit v0.0.0-20211027202011-7c49ec237639 h1:YfYasXGiLBZVPqsvNpbGSKr8sFp7A2BdeIBRU1oB91o=
forge.chapril.org/losyme/minikit v0.0.0-20211027202011-7c49ec237639/go.mod h1:RF28tFdCfgzJJMqbGRgO/BNQ2NzwDAidS/8SyPdgbf8=
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-20211025142031-fd89d32d86fe h1:xjMUKHxtG8jz57JyOxgNLlRaPLJeQvMV9K3HNlhKDB8=

4
internal/api/api.go

@ -24,13 +24,11 @@ type api struct {
}
func new(cs *components.Components) (*api, error) {
logger, err := cs.Logger.New(uuid.New(), "api", cs.Logger.Level())
logger, err := cs.Logger.NewComponent(uuid.New(), "api")
if err != nil {
return nil, err
}
logger.UseAllOutputs()
api := &api{
cs: cs,
logger: logger,

Loading…
Cancel
Save