actions

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	ID      string
	Type    string
	Status  string
	Errors  []error
	Results map[string]interface{}
	// contains filtered or unexported fields
}

Common struct for all actions

func (*Action) CanExecute

func (a *Action) CanExecute() bool

func (*Action) GetErrors

func (a *Action) GetErrors() []error

func (*Action) GetID

func (a *Action) GetID() string

Common methods

func (*Action) GetResults

func (a *Action) GetResults() map[string]interface{}

func (*Action) GetStatus

func (a *Action) GetStatus() string

func (*Action) GetType

func (a *Action) GetType() string

func (*Action) IsRunning

func (a *Action) IsRunning() bool

type IAction

type IAction interface {
	GetType() string
	Execute() error
	Cancel() error
	CanExecute() bool
	IsRunning() bool
}

Base interface for all actions

type TypeCheckAction

type TypeCheckAction struct {
	Action       // Embedding the base action
	Config       types.IConfig
	ParsedFiles  map[string][]*ast.File
	FileSet      *token.FileSet
	ErrorChannel chan error
}

TypeCheckAction defines a type-checking action

func NewTypeCheckAction

func NewTypeCheckAction(pkg string, files []*ast.File, cfg types.IConfig) *TypeCheckAction

NewTypeCheckAction creates a new type-checking action

func (*TypeCheckAction) Execute

func (tca *TypeCheckAction) Execute() error

Execute runs the type-checking process

Jump to

Keyboard shortcuts

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