plugin

package
v0.0.0-...-8792969 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 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
}

Jump to

Keyboard shortcuts

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