TUN-3038: Add connections to tunnel list table

This commit is contained in:
Adam Chalmers
2020-06-11 18:44:39 -05:00
parent 6e761cb7ae
commit acb7d604fd
3 changed files with 109 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ import (
"time"
"github.com/cloudflare/cloudflared/logger"
"github.com/google/uuid"
"github.com/pkg/errors"
)
@@ -26,9 +27,15 @@ var (
)
type Tunnel struct {
ID string `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
ID string `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"created_at"`
Connections []Connection `json:"connections"`
}
type Connection struct {
ColoName string `json:"colo_name"`
ID uuid.UUID `json:"uuid"`
}
type Client interface {