models

package
v0.0.90 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Logger  *log.Logger
	Workers *workerpool.WorkerPool
}

App contains objects that the application needs to work properly, such as logging

func (*App) ConfigureLogging

func (app *App) ConfigureLogging(logging config.Log)

ConfigureLogging sets up the logging for the application When running in Debug mode, it will be configured to add the caller to the message

func (*App) ConfigureWorkers

func (app *App) ConfigureWorkers(count int)

ConfigureWorkers sets up the worker pool with the specified number of workers

func (*App) HandleError

func (app *App) HandleError(err error, errorType string, msg ...string)

HandleError handles errors from the application This is to ensure that all errors are handled in the same way

func (*App) HandleErrorWithFields

func (app *App) HandleErrorWithFields(err error, errorType string, msg string, fields map[string]interface{})

type SpawnBuild

type SpawnBuild struct {
	Name      string // Name of the project in the mono repo
	Directory string // Directory in which the the command should be run
	Command   string // Command to run
	Env       map[string]string
}

func (*SpawnBuild) GetCommand

func (s *SpawnBuild) GetCommand() string

GetCommand returns a single string containing the command and the arguments that should be executed

func (*SpawnBuild) GetCommandParts

func (s *SpawnBuild) GetCommandParts() (string, string)

GetCommandParts returns the command and the arguments to the calling function

Jump to

Keyboard shortcuts

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