-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into handler-refactor
- Loading branch information
Showing
26 changed files
with
1,563 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package testserver | ||
|
||
// EmbeddedCase1 model | ||
type EmbeddedCase1 struct { | ||
Empty | ||
*ExportedEmbeddedPointerAfterInterface | ||
} | ||
|
||
// Empty interface | ||
type Empty interface{} | ||
|
||
// ExportedEmbeddedPointerAfterInterface model | ||
type ExportedEmbeddedPointerAfterInterface struct{} | ||
|
||
// ExportedEmbeddedPointerExportedMethod method | ||
func (*ExportedEmbeddedPointerAfterInterface) ExportedEmbeddedPointerExportedMethod() string { | ||
return "ExportedEmbeddedPointerExportedMethodResponse" | ||
} | ||
|
||
// EmbeddedCase2 model | ||
type EmbeddedCase2 struct { | ||
*unexportedEmbeddedPointer | ||
} | ||
|
||
type unexportedEmbeddedPointer struct{} | ||
|
||
// UnexportedEmbeddedPointerExportedMethod method | ||
func (*unexportedEmbeddedPointer) UnexportedEmbeddedPointerExportedMethod() string { | ||
return "UnexportedEmbeddedPointerExportedMethodResponse" | ||
} | ||
|
||
// EmbeddedCase3 model | ||
type EmbeddedCase3 struct { | ||
unexportedEmbeddedInterface | ||
} | ||
|
||
type unexportedEmbeddedInterface interface { | ||
nestedInterface | ||
} | ||
|
||
type nestedInterface interface { | ||
UnexportedEmbeddedInterfaceExportedMethod() string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
extend type Query { | ||
embeddedCase1: EmbeddedCase1 | ||
embeddedCase2: EmbeddedCase2 | ||
embeddedCase3: EmbeddedCase3 | ||
} | ||
|
||
type EmbeddedCase1 @goModel(model:"testserver.EmbeddedCase1") { | ||
exportedEmbeddedPointerExportedMethod: String! | ||
} | ||
|
||
type EmbeddedCase2 @goModel(model:"testserver.EmbeddedCase2") { | ||
unexportedEmbeddedPointerExportedMethod: String! | ||
} | ||
|
||
type EmbeddedCase3 @goModel(model:"testserver.EmbeddedCase3") { | ||
unexportedEmbeddedInterfaceExportedMethod: String! | ||
} |
Oops, something went wrong.