Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jm/ex - Extension support added (local). #47

Merged
merged 33 commits into from
Mar 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
dfcd110
First version for extension new/generate
jimmyaxod Sep 11, 2023
0325c42
Added extension list cmd
jimmyaxod Sep 13, 2023
bb23b76
Updated function new
jimmyaxod Sep 14, 2023
ec7ddac
First ver golang compile guest
jimmyaxod Sep 14, 2023
811c740
Removed some debug out
jimmyaxod Sep 14, 2023
c0a5391
Added simple test for ext
jimmyaxod Sep 15, 2023
9aa5001
Added missing parts for ext test
jimmyaxod Sep 15, 2023
6e7191e
Ext test now updates runner import locations
jimmyaxod Sep 15, 2023
9da7b26
Added 2nd run to example
jimmyaxod Sep 18, 2023
bd01013
Few changes to fix build
jimmyaxod Sep 18, 2023
31c0da5
Updated to import scale-extension-interfaces
jimmyaxod Sep 20, 2023
1bef57f
Fix go.mod for runner ext
jimmyaxod Sep 20, 2023
897ece1
Added missing scale-extension-interfaces
jimmyaxod Sep 21, 2023
3b591e7
Updated go.mod in runner
jimmyaxod Sep 21, 2023
e1d4638
Ext test now tests rust/typescript functions.
jimmyaxod Sep 21, 2023
54f4c5e
Rust new function now includes extensions in cargo
jimmyaxod Sep 22, 2023
1127ecb
Adjusted versions etc
jimmyaxod Sep 25, 2023
a3a89ad
Update to get rust compiling
jimmyaxod Sep 25, 2023
d877c10
Updated rust function code to test HttpFetch
jimmyaxod Sep 25, 2023
16483d6
Latest updates
jimmyaxod Sep 28, 2023
64a4829
Latest fn_code.rs
jimmyaxod Sep 28, 2023
39388f7
Latest runner code
jimmyaxod Sep 29, 2023
b5b7850
Fix unused var
jimmyaxod Sep 29, 2023
b26cdd7
Updated go fn and runner to handle error cases
jimmyaxod Sep 29, 2023
f609058
Updated test rs fn code a little
jimmyaxod Sep 29, 2023
361fc02
Fixed up rust ext code for new borrow stuff
jimmyaxod Oct 6, 2023
f6c5342
e2e work again for go host, go guest and rust guest
jimmyaxod Nov 22, 2023
8daabe8
Added changes for ts guest
jimmyaxod Dec 19, 2023
07df0da
Removed wip int tests
jimmyaxod Dec 19, 2023
4a53892
Merge branch 'staging' into jm/ext
dphilla Mar 8, 2024
ea94586
rm name/tag from template
dphilla Mar 8, 2024
9de5680
bump to latest release version
dphilla Mar 8, 2024
4b8dbaa
dependencies
dphilla Mar 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rm name/tag from template
  • Loading branch information
dphilla committed Mar 8, 2024
commit ea945863a1349d926f653c854e2a5e57423c11fc
16 changes: 7 additions & 9 deletions template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,18 @@ model Context {

ExtensionFile = `
version = "v1alpha"
name = "HttpFetch"
tag = "alpha"


function New {
params = "HttpConfig"
return = "HttpConnector"
return = "HttpConnector"
}

model HttpConfig {
int32 Timeout {
default = 60
}
}

model HttpResponse {
string_map Headers {
value = "StringList"
Expand All @@ -141,19 +139,19 @@ model Context {
initial_size = 0
}
}

model StringList {
string_array Values {
initial_size = 0
}
}

model ConnectionDetails {
string Url {
default = "https://google.com"
}
}

interface HttpConnector {
function Fetch {
params = "ConnectionDetails"
Expand Down
Loading