Module renamed to 'web'
This commit is contained in:
parent
dcaf19e793
commit
150b89fa97
2
.idea/modules.xml
generated
2
.idea/modules.xml
generated
@ -2,7 +2,7 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/webserver.iml" filepath="$PROJECT_DIR$/.idea/webserver.iml" />
|
<module fileurl="file://$PROJECT_DIR$/.idea/web.iml" filepath="$PROJECT_DIR$/.idea/web.iml" />
|
||||||
</modules>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
|
0
.idea/webserver.iml → .idea/web.iml
generated
0
.idea/webserver.iml → .idea/web.iml
generated
@ -1,4 +1,4 @@
|
|||||||
package webserver
|
package web
|
||||||
|
|
||||||
import "github.com/labstack/echo/v4"
|
import "github.com/labstack/echo/v4"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package webserver
|
package web
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Port uint16 `yaml:"port" envconfig:"PORT"`
|
Port uint16 `yaml:"port" envconfig:"PORT"`
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package webserver
|
package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
15
go.mod
15
go.mod
@ -1,20 +1,21 @@
|
|||||||
module netgarden.dev/maf/webserver
|
module netgarden.dev/maf/web
|
||||||
|
|
||||||
go 1.24.1
|
go 1.24.1
|
||||||
|
|
||||||
replace netgarden.dev/maf/maf => ../maf
|
replace (
|
||||||
|
netgarden.dev/maf/maf => ../../maf/maf
|
||||||
replace netgarden.dev/maf/mergefs => ../mergefs
|
netgarden.dev/maf/mergefs => ../../maf/mergefs
|
||||||
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/flosch/pongo2/v6 v6.0.0
|
github.com/flosch/pongo2/v6 v6.0.0
|
||||||
github.com/labstack/echo/v4 v4.13.3
|
github.com/labstack/echo/v4 v4.13.3
|
||||||
netgarden.dev/maf/maf v0.0.0-00010101000000-000000000000
|
netgarden.dev/maf/maf v0.0.0-20250327102624-f25d54ddf786
|
||||||
netgarden.dev/maf/mergefs v0.0.0-00010101000000-000000000000
|
netgarden.dev/maf/mergefs v0.0.0-20250327100833-ed0d8fb30bd1
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/elliotchance/orderedmap v1.6.0 // indirect
|
github.com/elliotchance/orderedmap v1.8.0 // indirect
|
||||||
github.com/kelseyhightower/envconfig v1.4.0 // indirect
|
github.com/kelseyhightower/envconfig v1.4.0 // indirect
|
||||||
github.com/labstack/gommon v0.4.2 // indirect
|
github.com/labstack/gommon v0.4.2 // indirect
|
||||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||||
|
4
go.sum
4
go.sum
@ -1,8 +1,8 @@
|
|||||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/elliotchance/orderedmap v1.6.0 h1:xjn+kbbKXeDq6v9RVE+WYwRbYfAZKvlWfcJNxM8pvEw=
|
github.com/elliotchance/orderedmap v1.8.0 h1:TrOREecvh3JbS+NCgwposXG5ZTFHtEsQiCGOhPElnMw=
|
||||||
github.com/elliotchance/orderedmap v1.6.0/go.mod h1:wsDwEaX5jEoyhbs7x93zk2H/qv0zwuhg4inXhDkYqys=
|
github.com/elliotchance/orderedmap v1.8.0/go.mod h1:wsDwEaX5jEoyhbs7x93zk2H/qv0zwuhg4inXhDkYqys=
|
||||||
github.com/flosch/pongo2/v6 v6.0.0 h1:lsGru8IAzHgIAw6H2m4PCyleO58I40ow6apih0WprMU=
|
github.com/flosch/pongo2/v6 v6.0.0 h1:lsGru8IAzHgIAw6H2m4PCyleO58I40ow6apih0WprMU=
|
||||||
github.com/flosch/pongo2/v6 v6.0.0/go.mod h1:CuDpFm47R0uGGE7z13/tTlt1Y6zdxvr2RLT5LJhsHEU=
|
github.com/flosch/pongo2/v6 v6.0.0/go.mod h1:CuDpFm47R0uGGE7z13/tTlt1Y6zdxvr2RLT5LJhsHEU=
|
||||||
github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=
|
github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=
|
||||||
|
2
group.go
2
group.go
@ -1,4 +1,4 @@
|
|||||||
package webserver
|
package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package webserver
|
package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/flosch/pongo2/v6"
|
"github.com/flosch/pongo2/v6"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package webserver
|
package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/flosch/pongo2/v6"
|
"github.com/flosch/pongo2/v6"
|
||||||
@ -21,11 +21,11 @@ type Module struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *Module) GetID() string {
|
func (m *Module) GetID() string {
|
||||||
return "webserver"
|
return "web"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Module) GetName() string {
|
func (m *Module) GetName() string {
|
||||||
return "webserver"
|
return "Web"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Module) SetManager(manager *maf.Manager) {
|
func (m *Module) SetManager(manager *maf.Manager) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package webserver
|
package web
|
||||||
|
|
||||||
type MiddlewareFuncProvider = func() MiddlewareFunc
|
type MiddlewareFuncProvider = func() MiddlewareFunc
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package webserver
|
package web
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user