Browse Source

En cours de développement

master
mls-361 2 months ago
parent
commit
148e263740
  1. 12
      cmd/main.go
  2. 16
      go.mod
  3. 36
      go.sum

12
cmd/main.go

@ -36,34 +36,34 @@ var (
func createComponents(app components.Application) (components.Logger, components.Server, error) {
config, err := config.Load(app)
if err != nil {
return nil, nil, errors.Wrap(err, "config") ////////////////////////////////////////////////////////////////////
return nil, nil, errors.WithMessage(err, "config") /////////////////////////////////////////////////////////////
}
logger, err := logger.Build(app, config)
if err != nil {
return nil, nil, errors.Wrap(err, "logger") ////////////////////////////////////////////////////////////////////
return nil, nil, errors.WithMessage(err, "logger") /////////////////////////////////////////////////////////////
}
crypto, err := crypto.Build(app)
if err != nil {
return nil, nil, errors.Wrap(err, "crypto") ////////////////////////////////////////////////////////////////////
return nil, nil, errors.WithMessage(err, "crypto") /////////////////////////////////////////////////////////////
}
storage, err := storage.Build(app, config, logger, crypto)
if err != nil {
return nil, nil, errors.Wrap(err, "storage") ///////////////////////////////////////////////////////////////////
return nil, nil, errors.WithMessage(err, "storage") ////////////////////////////////////////////////////////////
}
model, err := model.Build(logger, storage)
if err != nil {
return nil, nil, errors.Wrap(err, "model") /////////////////////////////////////////////////////////////////////
return nil, nil, errors.WithMessage(err, "model") //////////////////////////////////////////////////////////////
}
router := router.Build(logger)
server, err := server.Build(config, logger, router)
if err != nil {
return nil, nil, errors.Wrap(err, "server") ////////////////////////////////////////////////////////////////////
return nil, nil, errors.WithMessage(err, "server") /////////////////////////////////////////////////////////////
}
api.Build(logger, router, model)

16
go.mod

@ -3,14 +3,14 @@ module forge.chapril.org/armen/armen
go 1.15
require (
forge.chapril.org/armen/jw v0.0.0-20210419152101-8df8e7745249
forge.chapril.org/armen/memory v0.0.0-20210419152138-2768ef42e06f
forge.chapril.org/armen/model v0.0.0-20210419152944-a253d0a648a0
forge.chapril.org/mls-361/application v0.0.0-20210419150458-e34518fabf18
forge.chapril.org/mls-361/crypto v0.0.0-20210419150713-2fc6d04c4850
forge.chapril.org/mls-361/errors v0.0.0-20210419145112-c1508d3017f8
forge.chapril.org/mls-361/jsonapi v0.0.0-20210419151416-6c8e8e391566
forge.chapril.org/mls-361/logger v0.0.0-20210419151129-c85106763b03
forge.chapril.org/armen/jw v0.0.0-20210419160720-5e92e3649f51
forge.chapril.org/armen/memory v0.0.0-20210419160839-5f1efb21b446
forge.chapril.org/armen/model v0.0.0-20210419161816-8ab24640c2ec
forge.chapril.org/mls-361/application v0.0.0-20210419160614-21ff10dbf69b
forge.chapril.org/mls-361/crypto v0.0.0-20210419160518-cd43fd4c528f
forge.chapril.org/mls-361/errors v0.0.0-20210419160428-da8676608ac6
forge.chapril.org/mls-361/jsonapi v0.0.0-20210419160702-b1081fba7688
forge.chapril.org/mls-361/logger v0.0.0-20210419160634-221de2d60ba9
forge.chapril.org/mls-361/uuid v0.0.0-20210411123640-49d47af267ff
github.com/julienschmidt/httprouter v1.3.0
)

36
go.sum

@ -1,26 +1,26 @@
cloud.google.com/go v0.16.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
forge.chapril.org/armen/jw v0.0.0-20210419152101-8df8e7745249 h1:z9OsT3EATMw+odhBvSKYhKEe3MS+KVireJemvPr4zcI=
forge.chapril.org/armen/jw v0.0.0-20210419152101-8df8e7745249/go.mod h1:5Hsi6doo6khS4ObBurGUfrC7IK9tZ3BAj3/ExWdeZ6M=
forge.chapril.org/armen/memory v0.0.0-20210419152138-2768ef42e06f h1:rU7mHorcyWQlAyEsD+a/qxAi3ikXib1annrrl0a1Na8=
forge.chapril.org/armen/memory v0.0.0-20210419152138-2768ef42e06f/go.mod h1:LfKOwicIlKsTkqf6I0Smq/Oghmd8HQq368aDqtwJfrQ=
forge.chapril.org/armen/model v0.0.0-20210419152944-a253d0a648a0 h1:Sc8ZFkOnYjD8qOGzUyjgEGYEM4J0KrJor2ZKFuNZRK4=
forge.chapril.org/armen/model v0.0.0-20210419152944-a253d0a648a0/go.mod h1:PDptWO0VKSuMYNgthZxtG1vY/83YHXDqaKDIz0yLHYg=
forge.chapril.org/mls-361/application v0.0.0-20210419150458-e34518fabf18 h1:X6GYxFel5A5u8NresyJ9YTmsvp/wfbfe86i3ZavLeKc=
forge.chapril.org/mls-361/application v0.0.0-20210419150458-e34518fabf18/go.mod h1:oOPg97An4tKSxVRd8MxuvAP61EFYIvjuP0s9RaVYez4=
forge.chapril.org/armen/jw v0.0.0-20210419160720-5e92e3649f51 h1:MUtom4qTJsKPbpB2jf55it6A59kk3HpLthdPhIZEKpY=
forge.chapril.org/armen/jw v0.0.0-20210419160720-5e92e3649f51/go.mod h1:bwvVg7hjtekiSaHVL718UFHTSChVNRAbN+pXI846cZA=
forge.chapril.org/armen/memory v0.0.0-20210419160839-5f1efb21b446 h1:rWGM2l9S0jlPyTbkH6E1RVWA10SVYYJwNOZiXV5lX7Y=
forge.chapril.org/armen/memory v0.0.0-20210419160839-5f1efb21b446/go.mod h1:MuqL/sl5mPb0o1MkuJdRr4zy55m7+3yEmZGYFoSwylQ=
forge.chapril.org/armen/model v0.0.0-20210419161816-8ab24640c2ec h1:RV8MzZJhagsnoG/3BaIXQRFnOJbIlYdR5QnMgHQDfNM=
forge.chapril.org/armen/model v0.0.0-20210419161816-8ab24640c2ec/go.mod h1:q7gBuCeI9yK/mSy/NlScZ5fx8kWLXo4j/0Z1oEb79jI=
forge.chapril.org/mls-361/application v0.0.0-20210419160614-21ff10dbf69b h1:0wWN0/rXOsRKqjNZXy8QRTkTCpkhJoeqtBV6K/9VJzY=
forge.chapril.org/mls-361/application v0.0.0-20210419160614-21ff10dbf69b/go.mod h1:dYyRTbWlbmtvGPk+62BDjIerAtzFwzqwE7S/jg2cjLI=
forge.chapril.org/mls-361/buffer v0.0.0-20210410182428-5dc7a7b2ae79 h1:Lh+y98uVFC7btl5FdxKNtokzHD2j14R4ZIgJECao6r4=
forge.chapril.org/mls-361/buffer v0.0.0-20210410182428-5dc7a7b2ae79/go.mod h1:JnOkXF+AEkQ4mv65rzW9eVLsauGzOYIUBQB0zUb5NGE=
forge.chapril.org/mls-361/crypto v0.0.0-20210419150713-2fc6d04c4850 h1:Q0WdLgVuZuYN3bZQKVjYOKftauaxywHqSU4PvsbGkoU=
forge.chapril.org/mls-361/crypto v0.0.0-20210419150713-2fc6d04c4850/go.mod h1:1QHsaso0KEWR1XbnmC/GUuyKTPR3n6u6nrvr3wIsOq0=
forge.chapril.org/mls-361/errors v0.0.0-20210419145112-c1508d3017f8 h1:eztQc4g0w+hhWbKSfdCVHeMaK7k/N/bGGFwfJciMNVw=
forge.chapril.org/mls-361/errors v0.0.0-20210419145112-c1508d3017f8/go.mod h1:tYV6p4tU+TxW2HlyaQvCVx/7XYBapDHZJ+ipgtjTrXQ=
forge.chapril.org/mls-361/fqdn v0.0.0-20210419150140-98fba3aef254 h1:ZdR6JTPIkGeUXsB7r2gWU37ucIqHAnMtubGz/XVFB64=
forge.chapril.org/mls-361/fqdn v0.0.0-20210419150140-98fba3aef254/go.mod h1:ULEPZweDdCZ79AXeY2GdGsCDfuKtey7agDTL0CXsZR8=
forge.chapril.org/mls-361/jsonapi v0.0.0-20210419151416-6c8e8e391566 h1:V17iEeKQrG+MkWPPmYaxBKZSAeyp3EGuMk5uQuzwlL4=
forge.chapril.org/mls-361/jsonapi v0.0.0-20210419151416-6c8e8e391566/go.mod h1:K/YsteATnPctR35D8k3URryRND9VmBG2zAw3dyPEYoc=
forge.chapril.org/mls-361/crypto v0.0.0-20210419160518-cd43fd4c528f h1:9XRBIf10l0yHJkygwJt+j2cV8yFvF91J7xydyVCem1Y=
forge.chapril.org/mls-361/crypto v0.0.0-20210419160518-cd43fd4c528f/go.mod h1:DbpXCs8jX0ezeXcsA1wOXDpmRMlTIWG4xC/6jvrlEl4=
forge.chapril.org/mls-361/errors v0.0.0-20210419160428-da8676608ac6 h1:0G+BCPW/gC/SDysclEDoa5K3OI40Qg2Au7nnOu+KoWM=
forge.chapril.org/mls-361/errors v0.0.0-20210419160428-da8676608ac6/go.mod h1:tYV6p4tU+TxW2HlyaQvCVx/7XYBapDHZJ+ipgtjTrXQ=
forge.chapril.org/mls-361/fqdn v0.0.0-20210419160505-62f40f40daa5 h1:zxragV9tHDMFMHOz98QQg80w6GkaRPIum1iatyfHVSE=
forge.chapril.org/mls-361/fqdn v0.0.0-20210419160505-62f40f40daa5/go.mod h1:hLuNzb7meud4vWqfRPOBcPkvxvKdhWqP+TtWZf9Djo8=
forge.chapril.org/mls-361/jsonapi v0.0.0-20210419160702-b1081fba7688 h1:nhkh+NTvCGwCqmXzfqgbS8Vms1fSYIYqq7+hXsp1NSw=
forge.chapril.org/mls-361/jsonapi v0.0.0-20210419160702-b1081fba7688/go.mod h1:D/GSCDAPwrRk7ac31LfskGCG4AoELRYD7FxjpD2wfmo=
forge.chapril.org/mls-361/kvfmt v0.0.0-20210411202715-0e7c3e922d37 h1:6e1Y7hTJ0B8BYStiZSCdW4+v686rOpstQh2B5SWOhZU=
forge.chapril.org/mls-361/kvfmt v0.0.0-20210411202715-0e7c3e922d37/go.mod h1:bv44R0CAd8lQV4ub1hjLE3kWYwpfsW4Ro9zRnD4YOMU=
forge.chapril.org/mls-361/logger v0.0.0-20210419151129-c85106763b03 h1:WaF8QpRWQWqPbkBP9tpFHR520XDFSKnLQ3Yoa8RKCvU=
forge.chapril.org/mls-361/logger v0.0.0-20210419151129-c85106763b03/go.mod h1:hkP3gnadMzkPNjcJYz8H/2Ljk0y4yY/bhjFBC/P3q9o=
forge.chapril.org/mls-361/logger v0.0.0-20210419160634-221de2d60ba9 h1:5opMeROJYt6YqPZnc8nBCmDuBCY8NWDdtX8W9h+dxVw=
forge.chapril.org/mls-361/logger v0.0.0-20210419160634-221de2d60ba9/go.mod h1:O1yS1O1xi8o6d1r2qHsnMK18DRmdm3jMAbn+KvNE6mU=
forge.chapril.org/mls-361/uuid v0.0.0-20210411123640-49d47af267ff h1:N7L3nN/9Wlck9qtIxH6gbQ9sbWtsZ048+eDEdpvD09g=
forge.chapril.org/mls-361/uuid v0.0.0-20210411123640-49d47af267ff/go.mod h1:OAYM+f6ErfC4jbruuG2crA5W7YSpr7+wEs2MrxIzR3Q=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=

Loading…
Cancel
Save