gobuilder

package
v0.0.0-...-22e48d9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildHook

type BuildHook interface {
	// OnBuildTriggered is called when the Go build has started
	OnBuildTriggered()

	// OnBuildSuccess is called when the build was successful
	OnBuildSuccess()

	// OnBuildFailed is called when the build failed
	OnBuildFailed()
}

BuildHook can be used to listen to go build events

type ContinuousBuildHooks

type ContinuousBuildHooks interface {
	// OnStartListening is called when the continuous build has started
	OnStartListening()

	// OnStopListening is called when the continuous build is complete
	OnStopListening()
}

type ContinuousGoBuilder

type ContinuousGoBuilder struct {
	Builder *GoBuilder
	Hooks   ContinuousBuildHooks
}

func (*ContinuousGoBuilder) OnFileModified

func (cb *ContinuousGoBuilder) OnFileModified(file string)

func (*ContinuousGoBuilder) OnStartWatching

func (cb *ContinuousGoBuilder) OnStartWatching()

func (*ContinuousGoBuilder) OnStopWatching

func (cb *ContinuousGoBuilder) OnStopWatching()

type GoBuilder

type GoBuilder struct {
	TargetWasm string

	Hook BuildHook
}

func (*GoBuilder) Build

func (gb *GoBuilder) Build()

type PluginListener

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

!! TEMP !!

func LoadPluginListener

func LoadPluginListener(soFile string) (*PluginListener, error)

func (*PluginListener) OnBuildFailed

func (pl *PluginListener) OnBuildFailed()

func (*PluginListener) OnBuildSuccess

func (pl *PluginListener) OnBuildSuccess()

func (*PluginListener) OnBuildTriggered

func (pl *PluginListener) OnBuildTriggered()

Jump to

Keyboard shortcuts

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