bouncer/internal/store/proxy.go

28 lines
331 B
Go
Raw Normal View History

2023-04-24 20:52:12 +02:00
package store
import (
"net/url"
"time"
)
type ProxyID string
func NewProxyID() ProxyID {
return ProxyID(NewID())
}
var ParseProxyID = ParseID[ProxyID]
type ProxyHeader struct {
ID ProxyID
CreatedAt time.Time
UpdatedAt time.Time
}
type Proxy struct {
ProxyHeader
To *url.URL
From []string
Weight int
}