Browse Source

En cours de développement

master
mls-361 2 months ago
parent
commit
e4aa7e6545
  1. 10
      go.mod
  2. 24
      go.sum
  3. 11
      internal/demo/demo.go

10
go.mod

@ -3,11 +3,11 @@ module forge.chapril.org/armen/armen
go 1.16
require (
forge.chapril.org/armen/jw v0.0.0-20210507222608-1897194496a5
forge.chapril.org/armen/memory v0.0.0-20210507224104-8f0413129c90
forge.chapril.org/armen/model v0.0.0-20210507224025-824682e0515c
forge.chapril.org/armen/runner v0.0.0-20210507224218-db3b22da808f
forge.chapril.org/armen/workers v0.0.0-20210507224247-dfc7e4f59652
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-20210509145459-378f036b79cc
forge.chapril.org/mls-361/application v0.0.0-20210507222412-1e7c647c76cd
forge.chapril.org/mls-361/crypto v0.0.0-20210507222429-aa9bfa212956
forge.chapril.org/mls-361/errors v0.0.0-20210507222244-6017b9315140

24
go.sum

@ -1,15 +1,15 @@
forge.chapril.org/armen/factory v0.0.0-20210507224045-41e87efdb056 h1:i5bNefwCtPVzxt7lcPgMR8PB7i1sJbI+idk1/WnL/jg=
forge.chapril.org/armen/factory v0.0.0-20210507224045-41e87efdb056/go.mod h1:p/2keTxzv3S8yPZV7p0YXfQ4tKyZ1QJjluPss+2KCsA=
forge.chapril.org/armen/jw v0.0.0-20210507222608-1897194496a5 h1:J7XoeslLnAWOrxOygfHSGLkRdpPoXevnyHPqQB3CbAs=
forge.chapril.org/armen/jw v0.0.0-20210507222608-1897194496a5/go.mod h1:kcokSKftNm0txU4aLV8jfQFdLPMQX7SZfNc9T5ikMAY=
forge.chapril.org/armen/memory v0.0.0-20210507224104-8f0413129c90 h1:mONeJB8EtI5gzzzzxg4Da9xn0XTuc5FRf5vupiyqLoQ=
forge.chapril.org/armen/memory v0.0.0-20210507224104-8f0413129c90/go.mod h1:RdyB8A0hKJH4NpvKNhNS8ehieY58rQGcxobFRTyHfoU=
forge.chapril.org/armen/model v0.0.0-20210507224025-824682e0515c h1:ZHwI1EUiv6yLWFThNRUAvr648f1KCxwJVIGhpFVy3EQ=
forge.chapril.org/armen/model v0.0.0-20210507224025-824682e0515c/go.mod h1:TWeS70997BTIwGVdi/EB771Rh5inErfOcy9czkxPNJk=
forge.chapril.org/armen/runner v0.0.0-20210507224218-db3b22da808f h1:mM56jECYiNUVZBbJlIZcPLQPgejBpzljxp/ZpcJFVy4=
forge.chapril.org/armen/runner v0.0.0-20210507224218-db3b22da808f/go.mod h1:0vUiVmGitXYjL04rbzg2kC2T6X981dzNsxKiMDqN2uM=
forge.chapril.org/armen/workers v0.0.0-20210507224247-dfc7e4f59652 h1:IUMPpVYYxt7sGtMA5VJLPP7ywjfYDT7pWBF0GCSi44E=
forge.chapril.org/armen/workers v0.0.0-20210507224247-dfc7e4f59652/go.mod h1:V5Ox0x/zS5ht22BzJTk05r6z6QKMxYokbXupuMeR/7k=
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-20210509145459-378f036b79cc h1:LtDGRCqy0VZc9A+UWmjdSl6uxJ8eJ6/L75sTQuQuCos=
forge.chapril.org/armen/workers v0.0.0-20210509145459-378f036b79cc/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/mls-361/buffer v0.0.0-20210410182428-5dc7a7b2ae79 h1:Lh+y98uVFC7btl5FdxKNtokzHD2j14R4ZIgJECao6r4=

11
internal/demo/demo.go

@ -16,8 +16,8 @@ import (
)
type demo struct {
logger components.Logger
pool *workers.Pool
logger components.Logger
workers *workers.Pool
}
var _demo *demo
@ -80,7 +80,6 @@ func Build(ccs *components.Components) error {
p, err := workers.NewPool(&workers.Config{
Logger: ccs.Logger,
Model: ccs.Model,
Runner: r,
PoolSize: 2,
Host: ccs.Application.Host(),
@ -89,7 +88,7 @@ func Build(ccs *components.Components) error {
return err
}
d.pool = p
d.workers = p
_demo = d
return nil
@ -100,7 +99,7 @@ func Start() {
return
}
_demo.pool.Start()
_demo.workers.Start()
_demo.logger.Notice("Demonstration mode is activated") //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
}
@ -110,7 +109,7 @@ func Stop() {
return
}
_demo.pool.Stop()
_demo.workers.Stop()
}
/*

Loading…
Cancel
Save