client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentContext = new(Context)

CurrentContext of client

Functions

func AddToQueue

func AddToQueue(stack *[]recipe.Recipe, path string)

AddToQueue takes freshly created recipes and add them to queue

func IsLocked

func IsLocked(name string, client *Client) bool

IsLocked check does lock exists

func LockProcess

func LockProcess(name string, client *Client) bool

LockProcess recipe on process

func ProcessQueue

func ProcessQueue(queue *Queue, client *Client)

ProcessQueue queue

func RemoveLock

func RemoveLock(name string, client *Client) bool

RemoveLock recipe on process

func Resolve

func Resolve(command string, args []string) error

Resolve resolves which command to call

func Start

func Start(iniPath *string)

Start runs server

Types

type Client

type Client struct {
	Config *Config
	Logs   log.Logs
}

Client settings and configurations

type Config

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

Config values

type Context

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

Context holds variables in present context

func (*Context) DefineVar

func (c *Context) DefineVar(variable string, value string)

DefineVar defines variable and puts it in present context

func (*Context) GetVar

func (c *Context) GetVar(name string) Variable

GetVar finds var by name and returns its value

func (*Context) GetVars

func (c *Context) GetVars() []Variable

GetVars returns all defined variables in context

func (*Context) Transpile

func (c *Context) Transpile(toCompile string) string

Transpile text change variables from context

type Queue

type Queue struct {
	Stack []recipe.Recipe
}

Queue stack for pulling out recipes

func BuildQueue

func BuildQueue(path string, files []os.FileInfo) Queue

BuildQueue takes all recipes and put them in queue

type Variable

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

Variable is struct definition for variable

Jump to

Keyboard shortcuts

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