plugin

package
v0.0.0-...-7c3ffde Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadOptionsDescriptor

func ReadOptionsDescriptor[T any]() ([]*ipc.Option[any], error)

func ServeRequest

func ServeRequest[O any](plugin ServocPlugin[O]) error

Types

type ServocExtension

type ServocExtension interface {
	Info(*ipc.InfoRequest, *ipc.InfoResponse) error
	Generate(*ipc.GenerateRequest, *ipc.GenerateResponse) error
}

type ServocPlugin

type ServocPlugin[O any] interface {
	Info() (*ipc.InfoResponse, error)
	Generate(file *ast.File, options O) error
}