bouncer/internal/store/proxy.go

29 lines
329 B
Go

package store
import (
"net/url"
"time"
"github.com/google/uuid"
)
type ProxyID string
func NewProxyID() ProxyID {
uuid := uuid.NewString()
return ProxyID(uuid)
}
type ProxyHeader struct {
ID ProxyID
CreatedAt time.Time
UpdatedAt time.Time
}
type Proxy struct {
ProxyHeader
To *url.URL
From []string
}