MCPcopy Create free account
hub / github.com/bytecodealliance/wrpc / Server

Interface Server

go/wrpc.go:22–28  ·  view source on GitHub ↗

Server is the server-side transport handle

Source from the content-addressed store, hash-verified

20
21// Server is the server-side transport handle
22type Server interface {
23 // Serve serves a function `name` within an instance `instance`.
24 // `paths` define the async parameter paths to subscribe on.
25 // `Serve` will call `f` with two handles used for writing and reading encoded results and parameters respectively.
26 // On success, `Serve` returns a function, which can be called to stop serving.
27 Serve(instance string, name string, f HandleFunc, paths ...SubscribePath) (func() error, error)
28}
29
30// Own is an owned resource handle
31type Own[T any] []byte

Callers 11

ServeMethod · 0.65
TestAsyncFunction · 0.65
TestResourcesFunction · 0.65
TestSyncFunction · 0.65
runFunction · 0.65
runFunction · 0.65
runFunction · 0.65
runFunction · 0.65
runFunction · 0.45
runFunction · 0.45
runFunction · 0.45

Implementers 3

FramedServergo/frame_server.go
Servergo/x/tcp/server.go
Clientgo/nats/client.go

Calls

no outgoing calls

Tested by

no test coverage detected