Skip to content

Commit

Permalink
feat: update provider to use couchbase bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks Townsend <[email protected]>
  • Loading branch information
brooksmtownsend committed Aug 9, 2024
1 parent 7c5090b commit a23328f
Show file tree
Hide file tree
Showing 18 changed files with 9,956 additions and 604 deletions.
8,377 changes: 8,377 additions & 0 deletions bindings/exports/wasmcloud/couchbase/document/bindings.wrpc.go

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions bindings/interfaces.wrpc.go
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
}
Loading

0 comments on commit a23328f

Please sign in to comment.