Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2024 Changes in this version + const FileCatPluginAPIVersion + var ErrIntOverflow = fmt.Errorf("proto: integer overflow") + var ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") + func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption + func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption + type FileCat interface + Cat func(context.Context, *FileCatRequest) (*FileCatReply, error) + type FileCatPlugin struct + func NewFileCatPlugin(ctx context.Context, opts ...wazeroConfigOption) (*FileCatPlugin, error) + func (p *FileCatPlugin) Load(ctx context.Context, pluginPath string) (fileCat, error) + type FileCatReply struct + Content string + func (m *FileCatReply) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *FileCatReply) MarshalToVT(dAtA []byte) (int, error) + func (m *FileCatReply) MarshalVT() (dAtA []byte, err error) + func (m *FileCatReply) SizeVT() (n int) + func (m *FileCatReply) UnmarshalVT(dAtA []byte) error + func (x *FileCatReply) GetContent() string + func (x *FileCatReply) ProtoReflect() protoreflect.Message + type FileCatRequest struct + FilePath string + func (m *FileCatRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *FileCatRequest) MarshalToVT(dAtA []byte) (int, error) + func (m *FileCatRequest) MarshalVT() (dAtA []byte, err error) + func (m *FileCatRequest) SizeVT() (n int) + func (m *FileCatRequest) UnmarshalVT(dAtA []byte) error + func (x *FileCatRequest) GetFilePath() string + func (x *FileCatRequest) ProtoReflect() protoreflect.Message + type WazeroConfig struct + type WazeroNewRuntime func(context.Context) (wazero.Runtime, error) + func DefaultWazeroRuntime() WazeroNewRuntime