This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
15 changed files
with
692 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,24 @@ | ||
[package] | ||
name = "chimp_controller" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
async-tungstenite = { version = "0.22.0", features = ["tokio-runtime"] } | ||
chimp_protocol = { path = "../chimp_protocol" } | ||
clap = { workspace = true } | ||
cynic = { version = "3.2.2", features = ["http-reqwest"] } | ||
dotenvy = { workspace = true } | ||
futures-util = { version = "0.3.28" } | ||
graphql-ws-client = { version = "0.5.0", features = ["cynic"] } | ||
lapin = { version = "2.2.1", default-features = false, features = ["rustls"] } | ||
reqwest = "0.11.20" | ||
serde_json = "1.0.107" | ||
tokio = { workspace = true, features = ["sync"] } | ||
url = { workspace = true } | ||
uuid = { workspace = true } | ||
|
||
[build-dependencies] | ||
cynic-codegen = { version = "3.2.2" } | ||
targeting = { path = "../targeting" } |
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,3 @@ | ||
# Chimp Controller | ||
|
||
A small shim service which is designed to listen to the `imageCreated` subscription endpoint of the `targeting` service and generate jobs for `chimp_chomp`. When `chimp_chomp` completes the job this service will format the response and send it to the `targeting` service. |
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,8 @@ | ||
use targeting::root_schema_builder; | ||
|
||
fn main() { | ||
let schema = root_schema_builder().finish(); | ||
cynic_codegen::register_schema("targeting") | ||
.from_sdl(&schema.sdl()) | ||
.unwrap(); | ||
} |
Oops, something went wrong.