backend

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventHttpRequest                   = "HttpRequest"
	EventHttpResponse                  = "HttpResponse"
	EventProxyStatus                   = "ProxyStatusChange"
	EventCAExport                      = "CAExport"
	EventInterceptRequestModified      = "InterceptedRequestChange"
	EventInterceptRequestDropped       = "InterceptedRequestDrop"
	EventInterceptedRequest            = "InterceptedRequest"
	EventTreeUpdate                    = "TreeUpdate"
	EventSendRequest                   = "SendRequest"
	EventInterceptedRequestQueueChange = "InterceptedRequestQueueChange"
	EventWorkflowStarted               = "WorkflowStarted"
	EventWorkflowFinished              = "WorkflowFinished"
	EventWorkflowUpdate                = "WorkflowUpdated"
	EventWorkflowOutput                = "WorkflowOutput"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App struct

func New

func New(logger *log.Logger, settingsProvider *settings.Provider) *App

New creates a new App application struct

func (*App) Confirm

func (a *App) Confirm(title, msg string) bool

func (*App) CreateNode

func (a *App) CreateNode(nodeType int) *workflow.NodeM

func (*App) CreateWorkflow

func (a *App) CreateWorkflow() *workflow.WorkflowM

func (*App) CreateWorkflowFromRequest

func (a *App) CreateWorkflowFromRequest(reqU map[string]interface{}) *workflow.WorkflowM

func (*App) CreateWorkspace

func (a *App) CreateWorkspace(template *workspace.Workspace) *workspace.Workspace

func (*App) DeleteWorkspace

func (a *App) DeleteWorkspace(id string)

func (*App) Error

func (a *App) Error(title, msg string)

func (*App) ExportWorkflow

func (a *App) ExportWorkflow(w *workflow.WorkflowM)

func (*App) FormatCode

func (a *App) FormatCode(msg, contentType string) string

func (*App) GenerateID

func (a *App) GenerateID() string

func (*App) GetSettings

func (a *App) GetSettings() settings.Settings

func (*App) GetVersionInfo

func (a *App) GetVersionInfo() VersionInfo

func (*App) GetWorkspaces

func (a *App) GetWorkspaces() []*workspace.Workspace

func (*App) HighlightBody

func (a *App) HighlightBody(body, contentType string) string

func (*App) HighlightHTTP

func (a *App) HighlightHTTP(code string) string

func (*App) IgnoreThisUsedBindings

func (a *App) IgnoreThisUsedBindings(_ node.OutputM) workflow.UpdateM

func (*App) ImportWorkflow

func (a *App) ImportWorkflow() (*workflow.WorkflowM, error)

func (*App) LoadWorkspace

func (a *App) LoadWorkspace(id string) *workspace.Workspace

func (*App) Notify

func (a *App) Notify(title, msg string)

func (*App) RunWorkflow

func (a *App) RunWorkflow(w *workflow.WorkflowM)

func (*App) SaveSettings

func (a *App) SaveSettings(newSettings *settings.Settings)

func (*App) SaveWorkspace

func (a *App) SaveWorkspace(ws *workspace.Workspace)

func (*App) SelectFile

func (a *App) SelectFile(title string) (string, error)

func (*App) SetWorkspace

func (a *App) SetWorkspace(workspace *workspace.Workspace)

func (*App) Shutdown

func (a *App) Shutdown(_ context.Context)

Shutdown is called when the app is shutting down - we can cleanly stop the proxy here

func (*App) StartProxy

func (a *App) StartProxy()

func (*App) Startup

func (a *App) Startup(ctx context.Context)

Startup is called when the app starts. The context is saved so we can call the runtime methods

func (*App) StopProxy

func (a *App) StopProxy()

func (*App) StopWorkflow

func (a *App) StopWorkflow(w *workflow.WorkflowM)

func (*App) Warn

func (a *App) Warn(title, msg string)

type VersionInfo

type VersionInfo struct {
	Version string `json:"version"`
	Date    string `json:"date"`
	URL     string `json:"url"`
}

Directories

Path Synopsis
Package packaging provides functions to convert to and from http.Request/Response and json marshallable equivalents.
Package packaging provides functions to convert to and from http.Request/Response and json marshallable equivalents.

Jump to

Keyboard shortcuts

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