summary refs log tree commit diff
path: root/path.go
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2021-07-26 14:12:26 +0200
committerMelonai <einebeere@gmail.com>2021-07-26 14:12:26 +0200
commit7819a23171145e8a626e8357e88446817c8785dc (patch)
treef8834b1952583844f62c520ab0d8285b8ec2416f /path.go
parent3fe27839f0418d13a42524fd10102d0ef62c05f5 (diff)
downloadportgate-7819a23171145e8a626e8357e88446817c8785dc.tar.zst
portgate-7819a23171145e8a626e8357e88446817c8785dc.zip
Refactor into packages
Diffstat (limited to 'path.go')
-rw-r--r--path.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/path.go b/path.go
index 4b60dfe..3aa7816 100644
--- a/path.go
+++ b/path.go
@@ -1,7 +1,6 @@
-package main
+package portgate
 
 import (
-	"fmt"
 	"net/url"
 	"path"
 	"strconv"
@@ -69,9 +68,3 @@ func ParsePathFromReferer(p Path, r string) (Path, error) {
 		ResourcePath:          p.ResourcePath,
 	}, nil
 }
-
-// MakeUrl creates the URL on the destination host that the user wants to access.
-func (p *Path) MakeUrl(targetHost string) string {
-	// TODO: Figure out what to do with TLS
-	return fmt.Sprintf("http://%s:%d%s", targetHost, p.DestinationIdentifier, p.ResourcePath)
-}