Module renamed to 'web'

This commit is contained in:
Miroslav Misek 2025-03-28 08:49:33 +01:00
parent dcaf19e793
commit 150b89fa97
14 changed files with 23 additions and 22 deletions

2
.idea/modules.xml generated
View File

@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<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>
</component>
</project>

View File

View File

@ -1,4 +1,4 @@
package webserver
package web
import "github.com/labstack/echo/v4"

View File

@ -1,4 +1,4 @@
package webserver
package web
type Config struct {
Port uint16 `yaml:"port" envconfig:"PORT"`

View File

@ -1,4 +1,4 @@
package webserver
package web
import (
"errors"

2
dto.go
View File

@ -1,4 +1,4 @@
package webserver
package web
import "fmt"

15
go.mod
View File

@ -1,20 +1,21 @@
module netgarden.dev/maf/webserver
module netgarden.dev/maf/web
go 1.24.1
replace netgarden.dev/maf/maf => ../maf
replace netgarden.dev/maf/mergefs => ../mergefs
replace (
netgarden.dev/maf/maf => ../../maf/maf
netgarden.dev/maf/mergefs => ../../maf/mergefs
)
require (
github.com/flosch/pongo2/v6 v6.0.0
github.com/labstack/echo/v4 v4.13.3
netgarden.dev/maf/maf v0.0.0-00010101000000-000000000000
netgarden.dev/maf/mergefs v0.0.0-00010101000000-000000000000
netgarden.dev/maf/maf v0.0.0-20250327102624-f25d54ddf786
netgarden.dev/maf/mergefs v0.0.0-20250327100833-ed0d8fb30bd1
)
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/labstack/gommon v0.4.2 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect

4
go.sum
View File

@ -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.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
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.6.0/go.mod h1:wsDwEaX5jEoyhbs7x93zk2H/qv0zwuhg4inXhDkYqys=
github.com/elliotchance/orderedmap v1.8.0 h1:TrOREecvh3JbS+NCgwposXG5ZTFHtEsQiCGOhPElnMw=
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/go.mod h1:CuDpFm47R0uGGE7z13/tTlt1Y6zdxvr2RLT5LJhsHEU=
github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=

View File

@ -1,4 +1,4 @@
package webserver
package web
import (
"github.com/labstack/echo/v4"

View File

@ -1,4 +1,4 @@
package webserver
package web
import (
"github.com/flosch/pongo2/v6"

View File

@ -1,4 +1,4 @@
package webserver
package web
import (
"github.com/flosch/pongo2/v6"
@ -21,11 +21,11 @@ type Module struct {
}
func (m *Module) GetID() string {
return "webserver"
return "web"
}
func (m *Module) GetName() string {
return "webserver"
return "Web"
}
func (m *Module) SetManager(manager *maf.Manager) {

View File

@ -1,4 +1,4 @@
package webserver
package web
type MiddlewareFuncProvider = func() MiddlewareFunc

View File

@ -1,4 +1,4 @@
package webserver
package web
import (
"bytes"

View File

@ -1,4 +1,4 @@
package webserver
package web
import (
"context"