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