Skip to content

Commit a43dfa7

Browse files
committed
Added plugins
1 parent aa2fd97 commit a43dfa7

File tree

9 files changed

+77
-3
lines changed

9 files changed

+77
-3
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ require (
99
github.com/djthorpe/go-tablewriter v0.0.7
1010
github.com/mutablelogic/go-client v1.0.8
1111
github.com/stretchr/testify v1.9.0
12-
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
1312
)
1413

1514
require (

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1010
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1111
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
1212
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
13-
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 h1:vr/HnozRka3pE4EsMEg1lgkXJkTFJCVUX+S/ZT6wYzM=
14-
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc=
1513
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1614
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1715
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

plugin/auth/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import (
4+
// Packages
5+
server "github.com/mutablelogic/go-server"
6+
auth "github.com/mutablelogic/go-server/pkg/handler/auth"
7+
)
8+
9+
func Plugin() server.Plugin {
10+
return auth.Config{}
11+
}

plugin/httpserver/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import (
4+
// Packages
5+
server "github.com/mutablelogic/go-server"
6+
httpserver "github.com/mutablelogic/go-server/pkg/httpserver"
7+
)
8+
9+
func Plugin() server.Plugin {
10+
return httpserver.Config{}
11+
}

plugin/logger/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import (
4+
// Packages
5+
server "github.com/mutablelogic/go-server"
6+
logger "github.com/mutablelogic/go-server/pkg/middleware/logger"
7+
)
8+
9+
func Plugin() server.Plugin {
10+
return logger.Config{}
11+
}

plugin/nginx/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import (
4+
// Packages
5+
server "github.com/mutablelogic/go-server"
6+
nginx "github.com/mutablelogic/go-server/pkg/handler/nginx"
7+
)
8+
9+
func Plugin() server.Plugin {
10+
return nginx.Config{}
11+
}

plugin/router/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import (
4+
// Packages
5+
server "github.com/mutablelogic/go-server"
6+
router "github.com/mutablelogic/go-server/pkg/handler/router"
7+
)
8+
9+
func Plugin() server.Plugin {
10+
return router.Config{}
11+
}

plugin/static/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import (
4+
// Packages
5+
server "github.com/mutablelogic/go-server"
6+
static "github.com/mutablelogic/go-server/pkg/handler/static"
7+
)
8+
9+
func Plugin() server.Plugin {
10+
return static.Config{}
11+
}

plugin/tokenjar/main.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
import (
4+
// Packages
5+
server "github.com/mutablelogic/go-server"
6+
tokenjar "github.com/mutablelogic/go-server/pkg/handler/tokenjar"
7+
)
8+
9+
func Plugin() server.Plugin {
10+
return tokenjar.Config{}
11+
}

0 commit comments

Comments
 (0)