Skip to content

Commit

Permalink
Added plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
djthorpe committed Jun 5, 2024
1 parent aa2fd97 commit a43dfa7
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 3 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ require (
github.com/djthorpe/go-tablewriter v0.0.7
github.com/mutablelogic/go-client v1.0.8
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
)

require (
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 h1:vr/HnozRka3pE4EsMEg1lgkXJkTFJCVUX+S/ZT6wYzM=
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
11 changes: 11 additions & 0 deletions plugin/auth/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
// Packages
server "github.com/mutablelogic/go-server"
auth "github.com/mutablelogic/go-server/pkg/handler/auth"
)

func Plugin() server.Plugin {
return auth.Config{}
}
11 changes: 11 additions & 0 deletions plugin/httpserver/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
// Packages
server "github.com/mutablelogic/go-server"
httpserver "github.com/mutablelogic/go-server/pkg/httpserver"
)

func Plugin() server.Plugin {
return httpserver.Config{}
}
11 changes: 11 additions & 0 deletions plugin/logger/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
// Packages
server "github.com/mutablelogic/go-server"
logger "github.com/mutablelogic/go-server/pkg/middleware/logger"
)

func Plugin() server.Plugin {
return logger.Config{}
}
11 changes: 11 additions & 0 deletions plugin/nginx/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
// Packages
server "github.com/mutablelogic/go-server"
nginx "github.com/mutablelogic/go-server/pkg/handler/nginx"
)

func Plugin() server.Plugin {
return nginx.Config{}
}
11 changes: 11 additions & 0 deletions plugin/router/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
// Packages
server "github.com/mutablelogic/go-server"
router "github.com/mutablelogic/go-server/pkg/handler/router"
)

func Plugin() server.Plugin {
return router.Config{}
}
11 changes: 11 additions & 0 deletions plugin/static/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
// Packages
server "github.com/mutablelogic/go-server"
static "github.com/mutablelogic/go-server/pkg/handler/static"
)

func Plugin() server.Plugin {
return static.Config{}
}
11 changes: 11 additions & 0 deletions plugin/tokenjar/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import (
// Packages
server "github.com/mutablelogic/go-server"
tokenjar "github.com/mutablelogic/go-server/pkg/handler/tokenjar"
)

func Plugin() server.Plugin {
return tokenjar.Config{}
}

0 comments on commit a43dfa7

Please sign in to comment.