mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
publicProxyFrontend -> publicProxy (#170)
This commit is contained in:
parent
4c41908ce2
commit
56bb9c6d31
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/michaelquigley/cf"
|
"github.com/michaelquigley/cf"
|
||||||
"github.com/openziti/zrok/endpoints/publicProxyFrontend"
|
"github.com/openziti/zrok/endpoints/publicProxy"
|
||||||
"github.com/openziti/zrok/tui"
|
"github.com/openziti/zrok/tui"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
@ -33,7 +33,7 @@ func newAccessPublicCommand() *accessPublicCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (cmd *accessPublicCommand) run(_ *cobra.Command, args []string) {
|
func (cmd *accessPublicCommand) run(_ *cobra.Command, args []string) {
|
||||||
cfg := publicProxyFrontend.DefaultConfig()
|
cfg := publicProxy.DefaultConfig()
|
||||||
if len(args) == 1 {
|
if len(args) == 1 {
|
||||||
if err := cfg.Load(args[0]); err != nil {
|
if err := cfg.Load(args[0]); err != nil {
|
||||||
if !panicInstead {
|
if !panicInstead {
|
||||||
@ -43,7 +43,7 @@ func (cmd *accessPublicCommand) run(_ *cobra.Command, args []string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
logrus.Infof(cf.Dump(cfg, cf.DefaultOptions()))
|
logrus.Infof(cf.Dump(cfg, cf.DefaultOptions()))
|
||||||
frontend, err := publicProxyFrontend.NewHTTP(cfg)
|
frontend, err := publicProxy.NewHTTP(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if !panicInstead {
|
if !panicInstead {
|
||||||
tui.Error("unable to create http frontend", err)
|
tui.Error("unable to create http frontend", err)
|
||||||
|
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/michaelquigley/cf"
|
"github.com/michaelquigley/cf"
|
||||||
"github.com/openziti/zrok/endpoints/publicProxyFrontend"
|
"github.com/openziti/zrok/endpoints/publicProxy"
|
||||||
"github.com/openziti/zrok/tui"
|
"github.com/openziti/zrok/tui"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
@ -29,7 +29,7 @@ func newAccessPublicValidateCommand() *accessPublicValidateCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (cmd *accessPublicValidateCommand) run(_ *cobra.Command, args []string) {
|
func (cmd *accessPublicValidateCommand) run(_ *cobra.Command, args []string) {
|
||||||
cfg := publicProxyFrontend.DefaultConfig()
|
cfg := publicProxy.DefaultConfig()
|
||||||
if err := cfg.Load(args[0]); err != nil {
|
if err := cfg.Load(args[0]); err != nil {
|
||||||
tui.Error(fmt.Sprintf("unable to load configuration '%v'", args[0]), err)
|
tui.Error(fmt.Sprintf("unable to load configuration '%v'", args[0]), err)
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/openziti/sdk-golang/ziti"
|
"github.com/openziti/sdk-golang/ziti"
|
||||||
"github.com/openziti/sdk-golang/ziti/config"
|
"github.com/openziti/sdk-golang/ziti/config"
|
||||||
"github.com/openziti/zrok/endpoints"
|
"github.com/openziti/zrok/endpoints"
|
||||||
"github.com/openziti/zrok/endpoints/publicProxyFrontend/notFoundUi"
|
"github.com/openziti/zrok/endpoints/publicProxy/notFoundUi"
|
||||||
"github.com/openziti/zrok/model"
|
"github.com/openziti/zrok/model"
|
||||||
"github.com/openziti/zrok/util"
|
"github.com/openziti/zrok/util"
|
||||||
"github.com/openziti/zrok/zrokdir"
|
"github.com/openziti/zrok/zrokdir"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package publicProxyFrontend
|
package publicProxy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/michaelquigley/cf"
|
"github.com/michaelquigley/cf"
|
@ -1,4 +1,4 @@
|
|||||||
package publicProxyFrontend
|
package publicProxy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@ -6,8 +6,8 @@ import (
|
|||||||
"github.com/openziti/sdk-golang/ziti"
|
"github.com/openziti/sdk-golang/ziti"
|
||||||
"github.com/openziti/sdk-golang/ziti/config"
|
"github.com/openziti/sdk-golang/ziti/config"
|
||||||
"github.com/openziti/zrok/endpoints"
|
"github.com/openziti/zrok/endpoints"
|
||||||
"github.com/openziti/zrok/endpoints/publicProxyFrontend/healthUi"
|
"github.com/openziti/zrok/endpoints/publicProxy/healthUi"
|
||||||
"github.com/openziti/zrok/endpoints/publicProxyFrontend/notFoundUi"
|
"github.com/openziti/zrok/endpoints/publicProxy/notFoundUi"
|
||||||
"github.com/openziti/zrok/model"
|
"github.com/openziti/zrok/model"
|
||||||
"github.com/openziti/zrok/util"
|
"github.com/openziti/zrok/util"
|
||||||
"github.com/openziti/zrok/zrokdir"
|
"github.com/openziti/zrok/zrokdir"
|
Loading…
Reference in New Issue
Block a user