-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update provider to use couchbase bindings
Signed-off-by: Brooks Townsend <[email protected]>
- Loading branch information
1 parent
7c5090b
commit a23328f
Showing
18 changed files
with
9,956 additions
and
604 deletions.
There are no files selected for viewing
8,377 changes: 8,377 additions & 0 deletions
8,377
bindings/exports/wasmcloud/couchbase/document/bindings.wrpc.go
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,32 @@ | ||
// Generated by `wit-bindgen-wrpc-go` 0.1.1. DO NOT EDIT! | ||
// interfaces package contains wRPC bindings for `interfaces` world | ||
package interfaces | ||
|
||
import ( | ||
exports__wasmcloud__couchbase__document "github.com/couchbase-examples/wasmcloud-provider-couchbase/bindings/exports/wasmcloud/couchbase/document" | ||
wrpc "github.com/wrpc/wrpc/go" | ||
) | ||
|
||
func Serve(s wrpc.Server, h0 exports__wasmcloud__couchbase__document.Handler) (stop func() error, err error) { | ||
stops := make([]func() error, 0, 1) | ||
stop = func() error { | ||
for _, stop := range stops { | ||
if err := stop(); err != nil { | ||
return err | ||
} | ||
} | ||
return nil | ||
} | ||
stop0, err := exports__wasmcloud__couchbase__document.ServeInterface(s, h0) | ||
if err != nil { | ||
return | ||
} | ||
stops = append(stops, stop0) | ||
stop = func() error { | ||
if err := stop0(); err != nil { | ||
return err | ||
} | ||
return nil | ||
} | ||
return | ||
} |
Oops, something went wrong.