goplugin

package
v0.408.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const BuildLockTimeout = time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New() *Service

func (*Service) Build

Build the module and stream back build events.

A BuildSuccess or BuildFailure event must be streamed back with the request's context id to indicate the end of the build.

The request can include the option to "rebuild_automatically". In this case the plugin should watch for file changes and automatically rebuild as needed as long as this build request is alive. Each automactic rebuild must include the latest build context id provided by the request or subsequent BuildContextUpdated calls.

func (*Service) BuildContextUpdated

BuildContextUpdated is called whenever the build context is update while a Build call with "rebuild_automatically" is active.

Each time this call is made, the Build call must send back a corresponding BuildSuccess or BuildFailure event with the updated build context id with "is_automatic_rebuild" as false.

func (*Service) CreateModule

CreateModule generates files for a new module with the requested name

func (*Service) GetDependencies

GetDependencies extracts dependencies for a module

func (*Service) ModuleConfigDefaults

ModuleConfigDefaults provides default values for ModuleConfig for values that are not configured in the ftl.toml file.

func (*Service) Ping

Jump to

Keyboard shortcuts

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