Browse Source

En cours de développement

master
mls-361 7 months ago
parent
commit
3f4f62d89d
  1. 18
      go.mod
  2. 40
      go.sum
  3. 3
      internal/components/components.go
  4. 2
      internal/logger/logger.go

18
go.mod

@ -3,16 +3,16 @@ module forge.chapril.org/armen/armen
go 1.16
require (
forge.chapril.org/armen/jw v0.0.0-20210509145150-15cfa3907a5c
forge.chapril.org/armen/memory v0.0.0-20210509145246-b2b9b7b2ed5b
forge.chapril.org/armen/model v0.0.0-20210509145312-f33e15690e81
forge.chapril.org/armen/runner v0.0.0-20210509145423-a87e772e624e
forge.chapril.org/armen/workers v0.0.0-20210510070101-d628f9f1713c
forge.chapril.org/mls-361/application v0.0.0-20210507222412-1e7c647c76cd
forge.chapril.org/armen/jw v0.0.0-20210511100135-fb354113d017
forge.chapril.org/armen/memory v0.0.0-20210511100654-b2b750215c45
forge.chapril.org/armen/model v0.0.0-20210511115214-d61381b57ce4
forge.chapril.org/armen/runner v0.0.0-20210511115247-a2211ca58f4a
forge.chapril.org/armen/workers v0.0.0-20210511115530-b6ef81bf7e45
forge.chapril.org/mls-361/application v0.0.0-20210511091326-7ec1158728fd
forge.chapril.org/mls-361/crypto v0.0.0-20210507222429-aa9bfa212956
forge.chapril.org/mls-361/errors v0.0.0-20210507222244-6017b9315140
forge.chapril.org/mls-361/jsonapi v0.0.0-20210510124030-8dfcd685a7d1
forge.chapril.org/mls-361/logger v0.0.0-20210507222454-9faceb920b06
forge.chapril.org/mls-361/uuid v0.0.0-20210411123640-49d47af267ff
forge.chapril.org/mls-361/jsonapi v0.0.0-20210511115854-6ecaf78600bd
forge.chapril.org/mls-361/logger v0.0.0-20210511095341-cf849543bdbf
forge.chapril.org/mls-361/uuid v0.0.0-20210511091055-533cd6b13c6f
github.com/julienschmidt/httprouter v1.3.0
)

40
go.sum

@ -1,17 +1,17 @@
forge.chapril.org/armen/factory v0.0.0-20210509145226-c97d6d7bd2ec h1:sUvxtrlUK2eMBIi9/Rv+DP5itS4S1d7KxwZYgguoMOI=
forge.chapril.org/armen/factory v0.0.0-20210509145226-c97d6d7bd2ec/go.mod h1:EW7G5jgFWJdMnwftYt6saN9L7g/SiTGRRg6eYlopWQs=
forge.chapril.org/armen/jw v0.0.0-20210509145150-15cfa3907a5c h1:4tk48JWXDgyHKfDOO1dxTjJ8iFxQkvBMPMB+DBK4/q8=
forge.chapril.org/armen/jw v0.0.0-20210509145150-15cfa3907a5c/go.mod h1:kcokSKftNm0txU4aLV8jfQFdLPMQX7SZfNc9T5ikMAY=
forge.chapril.org/armen/memory v0.0.0-20210509145246-b2b9b7b2ed5b h1:VHu0nNo0dfA5IaupJqeB/nzVuBoNGFhE2mYNyb4ALGE=
forge.chapril.org/armen/memory v0.0.0-20210509145246-b2b9b7b2ed5b/go.mod h1:9Fti8ovgsr909quWIJvJQV9AT+OhwsPBRr9Ou3mkRTs=
forge.chapril.org/armen/model v0.0.0-20210509145312-f33e15690e81 h1:ot4R3FxwqAjO14tPUFCufBuwsBWrHoGuPD5eCSYMHLY=
forge.chapril.org/armen/model v0.0.0-20210509145312-f33e15690e81/go.mod h1:EYp9GXOqkj1z/n6SvVevRgBr03P0g1OkfCV0yPRxYPs=
forge.chapril.org/armen/runner v0.0.0-20210509145423-a87e772e624e h1:N4IeVWM91H3dPNBcFrDzT78xxdudx2MScN4mQYNjdhw=
forge.chapril.org/armen/runner v0.0.0-20210509145423-a87e772e624e/go.mod h1:BVUwxu6l6m34KU17rODBCstJj54WMlAZKn1Tx+Mb0NY=
forge.chapril.org/armen/workers v0.0.0-20210510070101-d628f9f1713c h1:Yblha8BHywOk17muNWtZla+ZLRdUMBhVtIizgHx/nB4=
forge.chapril.org/armen/workers v0.0.0-20210510070101-d628f9f1713c/go.mod h1:0IBXduhO5rNQU4DqdtUIpYZbLPnvwDMs4evjyKhkCEA=
forge.chapril.org/mls-361/application v0.0.0-20210507222412-1e7c647c76cd h1:wA+vXDakoPQ6rV2hLcveQdDuKQrHSQaBRUrf923yy7o=
forge.chapril.org/mls-361/application v0.0.0-20210507222412-1e7c647c76cd/go.mod h1:LQRrjmQI84R/Ql67PgmQvARfoFcmVMqXghM5BJe2n8o=
forge.chapril.org/armen/factory v0.0.0-20210511100412-29bf9fe72a2a h1:3b2dUsbSLEQ7XmHq5Lz2PznKixmD1U0OUu0h+J3Q/iA=
forge.chapril.org/armen/factory v0.0.0-20210511100412-29bf9fe72a2a/go.mod h1:zDzd8RCaGYgSrZU819c55oB3tm9/0sJvEQR8y/XkHGQ=
forge.chapril.org/armen/jw v0.0.0-20210511100135-fb354113d017 h1:xfsMUu1evMGPQJ38ZXZN0x1bPr+VylMQUz/OkoDEe7k=
forge.chapril.org/armen/jw v0.0.0-20210511100135-fb354113d017/go.mod h1:9Ilw0X1FS6y5BlOzl3CKpOUkYWasLldqYEjy2sIyo8M=
forge.chapril.org/armen/memory v0.0.0-20210511100654-b2b750215c45 h1:AEXd5zoq4SQknEqgX4qyuoGLmRmLcWGy4O3vW0jykH0=
forge.chapril.org/armen/memory v0.0.0-20210511100654-b2b750215c45/go.mod h1:RBiYGOiz3N4xx/nn/XKK7rdX3G4EjXZGcMDRXxtwMq0=
forge.chapril.org/armen/model v0.0.0-20210511115214-d61381b57ce4 h1:H0uiEIEpzBJpvt2WBB3UDj2utC1WMtdgbIWH3vtL3kM=
forge.chapril.org/armen/model v0.0.0-20210511115214-d61381b57ce4/go.mod h1:6CDuKzXwqL8D2qgo19zfUY8mSaKwem9NiwAuGIGuQHw=
forge.chapril.org/armen/runner v0.0.0-20210511115247-a2211ca58f4a h1:aGrvVGzYEGKwImYLzQcxlzBRb9Tg8yMX6bI6sDxhFgc=
forge.chapril.org/armen/runner v0.0.0-20210511115247-a2211ca58f4a/go.mod h1:i9J1g0DusWQ1YIIYGo62Y7eL71wr3qBKxzoZ8MYhRzA=
forge.chapril.org/armen/workers v0.0.0-20210511115530-b6ef81bf7e45 h1:IEeWXi9kCxQNA2IoBrmUIaR3xDsaZbskyPnGYNGrc7g=
forge.chapril.org/armen/workers v0.0.0-20210511115530-b6ef81bf7e45/go.mod h1:ZrP5XeB+oo+jMBuaN7po4d+iAwILLPrM2tVkwMOPYg0=
forge.chapril.org/mls-361/application v0.0.0-20210511091326-7ec1158728fd h1:TxjOhFddFJEaGl20mLJzbdr8kbETys+XHT4v5jitdys=
forge.chapril.org/mls-361/application v0.0.0-20210511091326-7ec1158728fd/go.mod h1:qO6QOXIo8KMDDD+dFv6uJ4AgbaTbjICi9LD0iNnUxJg=
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-20210507222429-aa9bfa212956 h1:Wuw2mnIWoBCW4i/M1oMH/Ppb2AwMQ0H8gvB7So21F1c=
@ -20,14 +20,14 @@ forge.chapril.org/mls-361/errors v0.0.0-20210507222244-6017b9315140 h1:uBp4Uz62/
forge.chapril.org/mls-361/errors v0.0.0-20210507222244-6017b9315140/go.mod h1:GBBbrcpLm0Hww05AoFQJY3tTXbNBOQPqV+qTFEWpL20=
forge.chapril.org/mls-361/fqdn v0.0.0-20210507222326-a85c3c19b9af h1:TbPVsBz8TYVmyqcrskFWlheyapWsuNrCVd6HedWuRjc=
forge.chapril.org/mls-361/fqdn v0.0.0-20210507222326-a85c3c19b9af/go.mod h1:AFGBvcK+UEZ9riVN+xN0suL8mVhBrxQIMKK39EX434s=
forge.chapril.org/mls-361/jsonapi v0.0.0-20210510124030-8dfcd685a7d1 h1:9ZwUpY+ZDfoswHQwSaJkLD5BVkfzAHXq2comAfHA0pg=
forge.chapril.org/mls-361/jsonapi v0.0.0-20210510124030-8dfcd685a7d1/go.mod h1:h7tNGoefr353rJRCt3O5fOMSMCfD8xzMX/ADulKMdq8=
forge.chapril.org/mls-361/jsonapi v0.0.0-20210511115854-6ecaf78600bd h1:Z+4Hz1En/Ka67Z5WQq6tLsRNuaMaOfalZskCbfk8B8A=
forge.chapril.org/mls-361/jsonapi v0.0.0-20210511115854-6ecaf78600bd/go.mod h1:Wcl8Jn+noUG743lGE9U5f35NSPB0bYeJMJHHzHGSzlk=
forge.chapril.org/mls-361/kvfmt v0.0.0-20210507213839-4f18d8b29e73 h1:OKwxmpmkdhy9SWwZcJrz7Fp57LWpY/PNloHdFiDc4Ek=
forge.chapril.org/mls-361/kvfmt v0.0.0-20210507213839-4f18d8b29e73/go.mod h1:bv44R0CAd8lQV4ub1hjLE3kWYwpfsW4Ro9zRnD4YOMU=
forge.chapril.org/mls-361/logger v0.0.0-20210507222454-9faceb920b06 h1:8+774tb3VA3VOgzM5I42JqXUqCRf/q9sMsEwuTqEXuM=
forge.chapril.org/mls-361/logger v0.0.0-20210507222454-9faceb920b06/go.mod h1:d134whMiOGgjNShiDgp6M6uELsKeZYnFoRRMV0I3nhc=
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=
forge.chapril.org/mls-361/logger v0.0.0-20210511095341-cf849543bdbf h1:CmobEbieeKPcje43phYbRH8GavpzktlXJGX7z/fEGCc=
forge.chapril.org/mls-361/logger v0.0.0-20210511095341-cf849543bdbf/go.mod h1:R/JAwND755VIZ+uTkwqtgY3GmPzS+Nn8NKXPXBr2JwQ=
forge.chapril.org/mls-361/uuid v0.0.0-20210511091055-533cd6b13c6f h1:ycJeyJjfkgEaiiNmOKd74Jir+qtlGlB17Dstvi1KekQ=
forge.chapril.org/mls-361/uuid v0.0.0-20210511091055-533cd6b13c6f/go.mod h1:OAYM+f6ErfC4jbruuG2crA5W7YSpr7+wEs2MrxIzR3Q=
github.com/jinzhu/copier v0.3.0 h1:P5zN9OYSxmtzZmwgcVmt5Iu8egfP53BGMPAFgEksKPI=
github.com/jinzhu/copier v0.3.0/go.mod h1:24xnZezI2Yqac9J61UC6/dG/k76ttpq0DdJI3QmUvro=
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=

3
internal/components/components.go

@ -12,14 +12,13 @@ import (
"forge.chapril.org/armen/jw"
"forge.chapril.org/mls-361/jsonapi"
"forge.chapril.org/mls-361/logger"
"forge.chapril.org/mls-361/uuid"
"forge.chapril.org/armen/armen/internal/config/data"
)
// Application AFAIRE.
type Application interface {
ID() uuid.UUID
ID() string
Name() string
Debug() int
LookupEnv(suffix string) (string, bool)

2
internal/logger/logger.go

@ -23,7 +23,7 @@ func Build(ccs *components.Components) (components.Logger, error) {
level = "trace"
}
return logger.New(app.ID(), app.Name(), level, logger.NewStderrOutput())
return logger.New(app.ID(), app.Name(), level, logger.NewOutputStderr())
}
/*

Loading…
Cancel
Save