Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { Generate(context.Context, *plugin.GenerateRequest) (*plugin.GenerateResponse, error) Invoke(ctx context.Context, method string, args any, reply any, opts ...grpc.CallOption) error NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error) }
func HandleFunc ¶
func HandleFunc(fn func(context.Context, *plugin.GenerateRequest) (*plugin.GenerateResponse, error)) Handler
Directories ¶
Path | Synopsis |
---|---|
The above build constraint is based of the cgo directives in this file: https://github.com/bytecodealliance/wasmtime-go/blob/main/ffi.go
|
The above build constraint is based of the cgo directives in this file: https://github.com/bytecodealliance/wasmtime-go/blob/main/ffi.go |
Click to show internal directories.
Click to hide internal directories.