aboutsummaryrefslogtreecommitdiff
path: root/rpc.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc.go')
-rw-r--r--rpc.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/rpc.go b/rpc.go
index 001598c..a94bc48 100644
--- a/rpc.go
+++ b/rpc.go
@@ -83,3 +83,15 @@ func (s GoXY) List(_ struct{}, r *Route) error {
return nil
}
*/
+
+// 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
+}