TUN-2163: Add GrapQLType method to Scope interface
This commit is contained in:
parent
f6c7f8a96c
commit
28f6c2ed7c
|
@ -132,6 +132,7 @@ func UnmarshalServerInfo(s tunnelrpc.ServerInfo) (*ServerInfo, error) {
|
||||||
type Scope interface {
|
type Scope interface {
|
||||||
Value() string
|
Value() string
|
||||||
PostgresType() string
|
PostgresType() string
|
||||||
|
GraphQLType() string
|
||||||
isScope()
|
isScope()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,7 +145,8 @@ func NewSystemName(systemName string) *SystemName {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SystemName) Value() string { return s.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() {}
|
func (_ *SystemName) isScope() {}
|
||||||
|
|
||||||
|
@ -157,7 +159,8 @@ func NewGroup(group string) *Group {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *Group) Value() string { return g.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() {}
|
func (_ *Group) isScope() {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue