-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50ba632
commit 3c77b00
Showing
10 changed files
with
12,248 additions
and
25 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,13 @@ | ||
# Default genqlient config; for full documentation see: | ||
# https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml | ||
schema: schema.graphql | ||
operations: | ||
- "*.go" | ||
bindings: | ||
JSON: | ||
type: interface{} | ||
BigInt: | ||
type: int64 | ||
ISO8601DateTime: | ||
type: time.Time | ||
generated: genqlient.go |
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,30 @@ | ||
package fly | ||
|
||
import ( | ||
"context" | ||
) | ||
|
||
func (c *Client) CreateBuild(ctx context.Context, input CreateBuildInput) (*CreateBuildResponse, error) { | ||
_ = `# @genqlient | ||
mutation CreateBuild($input:CreateBuildInput!) { | ||
createBuild(input:$input) { | ||
id | ||
status | ||
} | ||
} | ||
` | ||
return CreateBuild(ctx, c.genqClient, input) | ||
} | ||
|
||
func (c *Client) FinishBuild(ctx context.Context, input FinishBuildInput) (*FinishBuildResponse, error) { | ||
_ = `# @genqlient | ||
mutation FinishBuild($input:FinishBuildInput!) { | ||
finishBuild(input:$input) { | ||
id | ||
status | ||
wallclockTimeMs | ||
} | ||
} | ||
` | ||
return FinishBuild(ctx, c.genqClient, input) | ||
} |
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
Oops, something went wrong.