Skip to content

Commit 07d8f90

Browse files
committed
📦 updates HDK for v0.0.7
1 parent dd6c298 commit 07d8f90

File tree

19 files changed

+92
-50
lines changed

19 files changed

+92
-50
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
2+
._.*
23
host
34
simple-host
45
simple-hello-host

Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tasks:
99
# We use [mkdocs](https://www.mkdocs.org/)
1010
install-mkdocs:
1111
cmds:
12-
- pip install mkdocs-material
12+
- pipx install mkdocs-material --include-deps
1313
serve-mkdocs:
1414
cmds:
1515
- mkdocs serve
@@ -25,8 +25,8 @@ tasks:
2525
#TAG: "v0.0.3"
2626
#TAG: "v0.0.4"
2727
#TAG: "v0.0.5"
28-
# NEw release of the HDK
29-
TAG: "v0.0.6"
28+
#TAG: "v0.0.6"
29+
TAG: "v0.0.7"
3030
cmds:
3131
- echo "📦 Generating release..."
3232
- git add .

capsule.dk.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import (
1010
"github.com/tetratelabs/wazero/api"
1111
)
1212

13+
func TestMe() string {
14+
return "🦊"
15+
}
16+
1317
const isFailure = rune('F')
1418
const isSuccess = rune('S')
1519

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Capsule Host SDK
22

33
!!! info "What's new?"
4+
- `v0.0.7`: update with [Wazero 1.4.0](https://github.com/tetratelabs/wazero/releases/tag/v1.4.0) + Redis 🐞 fix
45
- `v0.0.6`: update with [Wazero 1.3.0](https://github.com/tetratelabs/wazero/releases/tag/v1.3.0)
56
- `v0.0.5`: ✨ Helpers updated: `CallOnStart` and `CallOnStop` (they are executed from the same wasm module instance)
67
- `v0.0.4`: ✨ Helpers added: `CallOnStart` and `CallOnStop`

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ go 1.20
44

55
require (
66
github.com/go-resty/resty/v2 v2.7.0
7-
github.com/redis/go-redis/v9 v9.0.4
8-
github.com/tetratelabs/wazero v1.3.0
7+
github.com/redis/go-redis/v9 v9.0.5
8+
github.com/tetratelabs/wazero v1.4.0
99
)
1010

1111
require (
1212
github.com/cespare/xxhash/v2 v2.2.0 // indirect
1313
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
14-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb // indirect
14+
golang.org/x/net v0.14.0 // indirect
1515
)

go.sum

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ github.com/go-resty/resty/v2 v2.7.0 h1:me+K9p3uhSmXtrBZ4k9jcEAfJmuC8IivWHwaLZwPr
88
github.com/go-resty/resty/v2 v2.7.0/go.mod h1:9PWDzw47qPphMRFfhsyk0NnSgvluHcljSMVIq3w7q0I=
99
github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvktgc=
1010
github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
11-
github.com/tetratelabs/wazero v1.2.0 h1:I/8LMf4YkCZ3r2XaL9whhA0VMyAvF6QE+O7rco0DCeQ=
12-
github.com/tetratelabs/wazero v1.2.0/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
13-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb h1:pirldcYWx7rx7kE5r+9WsOXPXK0+WH5+uZ7uPmJ44uM=
11+
github.com/redis/go-redis/v9 v9.0.5 h1:CuQcn5HIEeK7BgElubPP8CGtE0KakrnbBSTLjathl5o=
12+
github.com/redis/go-redis/v9 v9.0.5/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
13+
github.com/tetratelabs/wazero v1.3.0 h1:nqw7zCldxE06B8zSZAY0ACrR9OH5QCcPwYmYlwtcwtE=
14+
github.com/tetratelabs/wazero v1.3.0/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
15+
github.com/tetratelabs/wazero v1.4.0 h1:9/MirYvmkJ/zSUOygKY/ia3t+e+RqIZXKbylIby1WYk=
16+
github.com/tetratelabs/wazero v1.4.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A=
1417
golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
18+
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
19+
golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
20+
golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14=
21+
golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
1522
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1623
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1724
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=

go.work

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
go 1.20
22

33
use (
4-
./samples/simple
5-
./samples/simple-hello
6-
./samples/simple-talk
7-
./samples/cracker
4+
./samples/cracker
5+
./samples/simple
6+
./samples/simple-hello
7+
./samples/simple-talk
88
)

go.work.sum

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
github.com/bsm/ginkgo/v2 v2.7.0/go.mod h1:AiKlXPm7ItEHNc/2+OkrNG4E0ITzojb9/xWzvQ9XZ9w=
2+
github.com/bsm/gomega v1.26.0/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0=
3+
github.com/redis/go-redis/v9 v9.0.5/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
14
github.com/tetratelabs/wazero v1.0.1 h1:xyWBoGyMjYekG3mEQ/W7xm9E05S89kJ/at696d/9yuc=
25
github.com/tetratelabs/wazero v1.0.1/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
3-
github.com/tetratelabs/wazero v1.3.0 h1:nqw7zCldxE06B8zSZAY0ACrR9OH5QCcPwYmYlwtcwtE=
4-
github.com/tetratelabs/wazero v1.3.0/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
6+
github.com/tetratelabs/wazero v1.4.0/go.mod h1:0U0G41+ochRKoPKCJlh0jMg1CHkyfK8kDqiirMmKY8A=
57
github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY=
8+
golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw=
9+
golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
10+
golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
11+
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
12+
golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU=
13+
golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=

hostfunc.redis.go

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,41 @@ var redisDb *redis.Client
1717

1818
// InitRedisClient initializes a Redis client instance if it is not already initialized.
1919
func InitRedisClient() {
20-
if redisDb == nil {
21-
defaultDb, _ := strconv.Atoi(helpers.GetEnv("REDIS_DEFAULTDB", "0"))
22-
redisDb = redis.NewClient(&redis.Options{
23-
Addr: helpers.GetEnv("REDIS_ADDR", "localhost:6379"),
24-
Password: helpers.GetEnv("REDIS_PWD", ""), // no password set
25-
DB: defaultDb, // use default DB
26-
})
27-
}
20+
21+
if redisDb == nil {
22+
23+
redisURI := helpers.GetEnv("REDIS_URI", "")
24+
25+
if redisURI == "" {
26+
addr := helpers.GetEnv("REDIS_ADDR", "localhost:6379")
27+
password := helpers.GetEnv("REDIS_PWD", "") // no password set
28+
29+
defaultDb, _ := strconv.Atoi(helpers.GetEnv("REDIS_DEFAULTDB", "0"))
30+
31+
redisDb = redis.NewClient(&redis.Options{
32+
Addr: addr,
33+
Password: password,
34+
DB: defaultDb, // use default DB
35+
})
36+
} else {
37+
addr, err := redis.ParseURL(redisURI)
38+
if err != nil {
39+
// TODO: handle this error
40+
panic(err)
41+
}
42+
//? how to handle the "non connection"?
43+
redisDb = redis.NewClient(addr)
44+
}
45+
46+
}
2847
}
2948

3049
// getRedisClient returns a pointer to a Redis client.
3150
//
3251
// This function takes no parameters.
3352
// It returns a pointer to a Redis client.
3453
func getRedisClient() *redis.Client {
35-
return redisDb
54+
return redisDb
3655
}
3756

3857
// DefineHostFuncRedisSet defines a Go function that sets a value in Redis.
@@ -57,7 +76,7 @@ func DefineHostFuncRedisSet(builder wazero.HostModuleBuilder) {
5776
// redisSet : host function called by the wasm function
5877
// and then returning data to the wasm module
5978
var redisSet = api.GoModuleFunc(func(ctx context.Context, module api.Module, params []uint64) {
60-
79+
6180
// read the value of the arguments of the function
6281
keyPosition := uint32(params[0])
6382
keyLength := uint32(params[1])
@@ -77,9 +96,9 @@ var redisSet = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
7796

7897
// Execute the host function with the arguments and return a value
7998
var resultFromHost []byte
80-
99+
81100
// start the host work (using Redis client)
82-
InitRedisClient() // initialize the redis client only if it does not exist
101+
InitRedisClient() // initialize the redis client only if it does not exist
83102
err = getRedisClient().Set(ctx, string(bufferKey), string(bufferStringValue), 0).Err() // TODO: check if []byte is ok for the value
84103
if err != nil {
85104
resultFromHost = failure([]byte(err.Error()))
@@ -101,7 +120,6 @@ var redisSet = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
101120

102121
})
103122

104-
105123
// DefineHostFuncRedisGet defines a function that gets a value from Redis cache.
106124
func DefineHostFuncRedisGet(builder wazero.HostModuleBuilder) {
107125
builder.NewFunctionBuilder().
@@ -113,13 +131,13 @@ func DefineHostFuncRedisGet(builder wazero.HostModuleBuilder) {
113131
api.ValueTypeI32, // returned length
114132
},
115133
[]api.ValueType{api.ValueTypeI32}).
116-
Export("hostCacheGet")
134+
Export("hostRedisGet")
117135
}
118136

119137
// redisGet : host function called by the wasm function
120138
// and then returning data to the wasm module
121139
var redisGet = api.GoModuleFunc(func(ctx context.Context, module api.Module, params []uint64) {
122-
140+
123141
// read the value of the arguments of the function
124142
keyPosition := uint32(params[0])
125143
keyLength := uint32(params[1])
@@ -131,7 +149,7 @@ var redisGet = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
131149

132150
// Execute the host function with the arguments and return a value
133151
var resultFromHost []byte
134-
152+
135153
// start the host work
136154
result, err := getRedisClient().Get(ctx, string(bufferKey)).Result()
137155
if err != nil {
@@ -169,13 +187,13 @@ func DefineHostFuncRedisDel(builder wazero.HostModuleBuilder) {
169187
api.ValueTypeI32, // returned length
170188
},
171189
[]api.ValueType{api.ValueTypeI32}).
172-
Export("hostCacheDel")
190+
Export("hostRedisDel")
173191
}
174192

175193
// redisDel : host function called by the wasm function
176194
// and then returning data to the wasm module
177195
var redisDel = api.GoModuleFunc(func(ctx context.Context, module api.Module, params []uint64) {
178-
196+
179197
// read the value of the arguments of the function
180198
keyPosition := uint32(params[0])
181199
keyLength := uint32(params[1])
@@ -187,7 +205,7 @@ var redisDel = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
187205

188206
// Execute the host function with the arguments and return a value
189207
var resultFromHost []byte
190-
208+
191209
// start the host work
192210
_, err = getRedisClient().Del(ctx, string(bufferKey)).Result()
193211
if err != nil {
@@ -215,15 +233,15 @@ var redisDel = api.GoModuleFunc(func(ctx context.Context, module api.Module, par
215233
// filter length, returned position and returned length. It returns an integer.
216234
func DefineHostFuncRedisKeys(builder wazero.HostModuleBuilder) {
217235
builder.NewFunctionBuilder().
218-
WithGoModuleFunction(cacheKeys,
236+
WithGoModuleFunction(redisKeys,
219237
[]api.ValueType{
220238
api.ValueTypeI32, // filter position
221239
api.ValueTypeI32, // filter length
222240
api.ValueTypeI32, // returned position
223241
api.ValueTypeI32, // returned length
224242
},
225243
[]api.ValueType{api.ValueTypeI32}).
226-
Export("hostCacheKeys")
244+
Export("hostRedisKeys")
227245
}
228246

229247
// redisKeys : host function called by the wasm function
@@ -241,16 +259,16 @@ var redisKeys = api.GoModuleFunc(func(ctx context.Context, module api.Module, pa
241259

242260
// Execute the host function with the arguments and return a value
243261
var resultFromHost []byte
244-
262+
245263
// start the host work
246264
var keysMap = make(map[string][]string)
247265

248266
// call the redis KEYS command
249-
keys, err := getRedisClient().Keys(ctx, string(bufferFilter)).Result()
267+
keys, err := getRedisClient().Keys(ctx, string(bufferFilter)).Result()
250268
if err != nil {
251269
resultFromHost = failure([]byte(err.Error()))
252270
} else {
253-
keysMap["keys"] = keys
271+
keysMap["keys"] = keys
254272
jsonStr, err := json.Marshal(keysMap)
255273
// {"keys":["key1","key2"]}
256274
if err != nil {

memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func ReturnBytesToMemory(ctx context.Context, mod api.Module, positionReturnBuff
129129
allocatedPosition := uint32(results[0])
130130
mod.Memory().WriteUint32Le(positionReturnBuffer, allocatedPosition)
131131
mod.Memory().WriteUint32Le(lengthReturnBuffer, uint32(dataFromHostLength))
132-
132+
133133
// add the message to the memory of the module
134134
return mod.Memory().Write(allocatedPosition, dataFromHost), nil
135135

runtime.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ func GetBuilder(runtime wazero.Runtime) wazero.HostModuleBuilder {
2727
DefineHostFuncCacheDel(builder) // see hostfunc.memorycache.go
2828
DefineHostFuncCacheKeys(builder) // see hostfunc.memorycache.go
2929

30+
DefineHostFuncRedisDel(builder)
31+
DefineHostFuncRedisGet(builder)
32+
DefineHostFuncRedisKeys(builder)
33+
DefineHostFuncRedisSet(builder)
34+
3035
return builder
3136
}
3237

samples/cracker/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ go 1.20
55
require (
66
github.com/go-resty/resty/v2 v2.7.0 // indirect
77
github.com/tetratelabs/wazero v1.3.0
8-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb // indirect
8+
golang.org/x/net v0.9.0 // indirect
99
)
1010

1111
require github.com/bots-garden/capsule-host-sdk v0.0.6
1212

13-
require github.com/bots-garden/capsule-host-sdk v0.0.0-00010101000000-000000000000
14-
1513
require (
1614
github.com/cespare/xxhash/v2 v2.2.0 // indirect
1715
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect

samples/cracker/go.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvkt
1010
github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
1111
github.com/tetratelabs/wazero v1.3.0 h1:nqw7zCldxE06B8zSZAY0ACrR9OH5QCcPwYmYlwtcwtE=
1212
github.com/tetratelabs/wazero v1.3.0/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
13-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb h1:pirldcYWx7rx7kE5r+9WsOXPXK0+WH5+uZ7uPmJ44uM=
1413
golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
14+
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
1515
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1616
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1717
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=

samples/simple-hello/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
1212
github.com/go-resty/resty/v2 v2.7.0 // indirect
1313
github.com/redis/go-redis/v9 v9.0.4 // indirect
14-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb // indirect
14+
golang.org/x/net v0.9.0 // indirect
1515
)
1616

1717
replace github.com/bots-garden/capsule-host-sdk => ../..

samples/simple-hello/go.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvkt
1010
github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
1111
github.com/tetratelabs/wazero v1.3.0 h1:nqw7zCldxE06B8zSZAY0ACrR9OH5QCcPwYmYlwtcwtE=
1212
github.com/tetratelabs/wazero v1.3.0/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
13-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb h1:pirldcYWx7rx7kE5r+9WsOXPXK0+WH5+uZ7uPmJ44uM=
1413
golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
14+
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
1515
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1616
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1717
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=

samples/simple-talk/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/go-resty/resty/v2 v2.7.0 // indirect
99
github.com/redis/go-redis/v9 v9.0.4 // indirect
1010
github.com/tetratelabs/wazero v1.3.0 // indirect
11-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb // indirect
11+
golang.org/x/net v0.9.0 // indirect
1212
)
1313

1414
require github.com/bots-garden/capsule-host-sdk v0.0.6

samples/simple-talk/go.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvkt
1010
github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
1111
github.com/tetratelabs/wazero v1.3.0 h1:nqw7zCldxE06B8zSZAY0ACrR9OH5QCcPwYmYlwtcwtE=
1212
github.com/tetratelabs/wazero v1.3.0/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
13-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb h1:pirldcYWx7rx7kE5r+9WsOXPXK0+WH5+uZ7uPmJ44uM=
1413
golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
14+
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
1515
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1616
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1717
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=

samples/simple/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
1212
github.com/go-resty/resty/v2 v2.7.0 // indirect
1313
github.com/redis/go-redis/v9 v9.0.4 // indirect
14-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb // indirect
14+
golang.org/x/net v0.9.0 // indirect
1515
)
1616

1717
replace github.com/bots-garden/capsule-host-sdk => ../..

samples/simple/go.sum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvkt
1010
github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
1111
github.com/tetratelabs/wazero v1.3.0 h1:nqw7zCldxE06B8zSZAY0ACrR9OH5QCcPwYmYlwtcwtE=
1212
github.com/tetratelabs/wazero v1.3.0/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
13-
golang.org/x/net v0.0.0-20211029224645-99673261e6eb h1:pirldcYWx7rx7kE5r+9WsOXPXK0+WH5+uZ7uPmJ44uM=
1413
golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
14+
golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM=
1515
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1616
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
1717
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=

0 commit comments

Comments
 (0)