Documentation ¶
Index ¶
- Constants
- Variables
- func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption
- func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption
- type Common
- type CommonPlugin
- type Reply
- func (x *Reply) GetCode() int32
- func (x *Reply) GetMessage() string
- func (m *Reply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Reply) MarshalToVT(dAtA []byte) (int, error)
- func (m *Reply) MarshalVT() (dAtA []byte, err error)
- func (x *Reply) ProtoReflect() protoreflect.Message
- func (m *Reply) SizeVT() (n int)
- func (m *Reply) UnmarshalVT(dAtA []byte) error
- type Request
- func (x *Request) GetArgs() string
- func (m *Request) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Request) MarshalToVT(dAtA []byte) (int, error)
- func (m *Request) MarshalVT() (dAtA []byte, err error)
- func (x *Request) ProtoReflect() protoreflect.Message
- func (m *Request) SizeVT() (n int)
- func (m *Request) UnmarshalVT(dAtA []byte) error
- type WazeroConfig
- type WazeroNewRuntime
Constants ¶
View Source
const CommonPluginAPIVersion = 1
Variables ¶
Functions ¶
func WazeroModuleConfig ¶
func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption
func WazeroRuntime ¶
func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption
Types ¶
type Common ¶
type Common interface { Prepare(context.Context, *Request) (*Reply, error) Run(context.Context, *Request) (*Reply, error) Check(context.Context, *Request) (*Reply, error) Rollback(context.Context, *Request) (*Reply, error) }
go:plugin type=plugin version=1
type CommonPlugin ¶
type CommonPlugin struct {
// contains filtered or unexported fields
}
func NewCommonPlugin ¶
func NewCommonPlugin(ctx context.Context, opts ...wazeroConfigOption) (*CommonPlugin, error)
type Reply ¶
type Reply struct { Code int32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*Reply) GetMessage ¶
func (*Reply) MarshalToSizedBufferVT ¶
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
func (*Reply) UnmarshalVT ¶
type Request ¶
type Request struct { Args string `protobuf:"bytes,1,opt,name=Args,proto3" json:"Args,omitempty"` // contains filtered or unexported fields }
func (*Request) MarshalToSizedBufferVT ¶
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) UnmarshalVT ¶
type WazeroConfig ¶
type WazeroConfig struct {
// contains filtered or unexported fields
}
type WazeroNewRuntime ¶
func DefaultWazeroRuntime ¶
func DefaultWazeroRuntime() WazeroNewRuntime
Click to show internal directories.
Click to hide internal directories.