mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 07:59:58 +00:00
TUN-2125: Add PostgresType() to Scope
This commit is contained in:
@@ -131,6 +131,7 @@ func UnmarshalServerInfo(s tunnelrpc.ServerInfo) (*ServerInfo, error) {
|
||||
//go-sumtype:decl Scope
|
||||
type Scope interface {
|
||||
Value() string
|
||||
PostgresType() string
|
||||
isScope()
|
||||
}
|
||||
|
||||
@@ -143,6 +144,7 @@ func NewSystemName(systemName string) *SystemName {
|
||||
}
|
||||
|
||||
func (s *SystemName) Value() string { return s.systemName }
|
||||
func (s *SystemName) PostgresType() string { return "system_name" }
|
||||
|
||||
func (_ *SystemName) isScope() {}
|
||||
|
||||
@@ -155,6 +157,7 @@ func NewGroup(group string) *Group {
|
||||
}
|
||||
|
||||
func (g *Group) Value() string { return g.group }
|
||||
func (g *Group) PostgresType() string { return "group" }
|
||||
|
||||
func (_ *Group) isScope() {}
|
||||
|
||||
|
Reference in New Issue
Block a user