Browse Source

En cours de développement

master
mls-361 2 months ago
parent
commit
8305fb7a1d
  1. 2
      internal/config/config.go
  2. 2
      internal/crypto/crypto.go
  3. 2
      internal/logger/logger.go
  4. 2
      internal/router/router.go
  5. 2
      internal/server/server.go

2
internal/config/config.go

@ -25,7 +25,7 @@ func newConfig() *config {
}
// Load AFAIRE.
func Load(app components.Application) (*config, error) {
func Load(app components.Application) (components.Config, error) {
cc := newConfig()
config, ok := app.LookupEnv("CONFIG")

2
internal/crypto/crypto.go

@ -12,7 +12,7 @@ import (
"forge.chapril.org/armen/armen/internal/components"
)
func Build(app components.Application) (*crypto.Crypto, error) {
func Build(app components.Application) (components.Crypto, error) {
cc := crypto.New()
key, ok := app.LookupEnv("KEY")

2
internal/logger/logger.go

@ -13,7 +13,7 @@ import (
)
// AFAIRE.
func Build(app components.Application, _ components.Config) (logger.Logger, error) {
func Build(app components.Application, _ components.Config) (components.Logger, error) {
return logger.New(app.ID(), app.Name(), "trace", logger.NewStderrOutput())
}

2
internal/router/router.go

@ -25,7 +25,7 @@ func newRouter() *router {
}
// Build AFAIRE.
func Build(logger components.Logger) *router {
func Build(logger components.Logger) components.Router {
cr := newRouter()
cr.mux.PanicHandler = func(rw http.ResponseWriter, _ *http.Request, _ interface{}) {

2
internal/server/server.go

@ -30,7 +30,7 @@ func newServer(logger components.Logger) *server {
}
}
func Build(config components.Config, logger components.Logger, router components.Router) (*server, error) {
func Build(config components.Config, logger components.Logger, router components.Router) (components.Server, error) {
cs := newServer(logger.NewLogger(uuid.New(), "server"))
cfg := config.Server()

Loading…
Cancel
Save