aboutsummaryrefslogtreecommitdiff
path: root/entry.go
diff options
context:
space:
mode:
Diffstat (limited to 'entry.go')
-rw-r--r--entry.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/entry.go b/entry.go
new file mode 100644
index 0000000..de7c1e3
--- /dev/null
+++ b/entry.go
@@ -0,0 +1,13 @@
+package goxy
+
+// Entry holds routing settings
+type Entry struct {
+ Host string // HostName
+ Upstream string // URL
+ Cert []byte // PEM
+ Key []byte // PEM
+}
+
+func (e Entry) String() string {
+ return e.Host + " → " + e.Upstream
+}