codeloader

package
v0.0.0-...-f185839 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisteredPlugins []string

Functions

func RegisterPlugin

func RegisterPlugin(s string)

Types

type Config

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

func DefaultConfig

func DefaultConfig(ctx context.Context) (*Config, error)

func (*Config) Version

func (config *Config) Version(ctx context.Context) (string, error)

type Request

type Request struct {
	// Go source code with no imports.
	SourceCode string
	Files      map[string]string
	Config     *Config
}

type Response

type Response struct {
	// Path that may be passed to plugin.Open to load the plugin.
	Path   string
	Plugin *plugin.Plugin
}

func CompileAndLoadCompileTimeCode

func CompileAndLoadCompileTimeCode(req *Request) (*Response, error)

Jump to

Keyboard shortcuts

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