cat

package
v0.0.0-...-80e6f32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const FileCatPluginAPIVersion = 1

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)

Functions

func WazeroModuleConfig

func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption

func WazeroRuntime

func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption

Types

type FileCat

type FileCat interface {
	Cat(context.Context, *FileCatRequest) (*FileCatReply, error)
}

go:plugin type=plugin

type FileCatPlugin

type FileCatPlugin struct {
	// contains filtered or unexported fields
}

func NewFileCatPlugin

func NewFileCatPlugin(ctx context.Context, opts ...wazeroConfigOption) (*FileCatPlugin, error)

func (*FileCatPlugin) Load

func (p *FileCatPlugin) Load(ctx context.Context, pluginPath string) (fileCat, error)

type FileCatReply

type FileCatReply struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*FileCatReply) GetContent

func (x *FileCatReply) GetContent() string

func (*FileCatReply) MarshalToSizedBufferVT

func (m *FileCatReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FileCatReply) MarshalToVT

func (m *FileCatReply) MarshalToVT(dAtA []byte) (int, error)

func (*FileCatReply) MarshalVT

func (m *FileCatReply) MarshalVT() (dAtA []byte, err error)

func (*FileCatReply) ProtoReflect

func (x *FileCatReply) ProtoReflect() protoreflect.Message

func (*FileCatReply) SizeVT

func (m *FileCatReply) SizeVT() (n int)

func (*FileCatReply) UnmarshalVT

func (m *FileCatReply) UnmarshalVT(dAtA []byte) error

type FileCatRequest

type FileCatRequest struct {
	FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	// contains filtered or unexported fields
}

func (*FileCatRequest) GetFilePath

func (x *FileCatRequest) GetFilePath() string

func (*FileCatRequest) MarshalToSizedBufferVT

func (m *FileCatRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FileCatRequest) MarshalToVT

func (m *FileCatRequest) MarshalToVT(dAtA []byte) (int, error)

func (*FileCatRequest) MarshalVT

func (m *FileCatRequest) MarshalVT() (dAtA []byte, err error)

func (*FileCatRequest) ProtoReflect

func (x *FileCatRequest) ProtoReflect() protoreflect.Message

func (*FileCatRequest) SizeVT

func (m *FileCatRequest) SizeVT() (n int)

func (*FileCatRequest) UnmarshalVT

func (m *FileCatRequest) UnmarshalVT(dAtA []byte) error

type WazeroConfig

type WazeroConfig struct {
	// contains filtered or unexported fields
}

type WazeroNewRuntime

type WazeroNewRuntime func(context.Context) (wazero.Runtime, error)

func DefaultWazeroRuntime

func DefaultWazeroRuntime() WazeroNewRuntime

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL