app_control

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control interface {
	// UI
	UI() app_ui.UI

	// Logger
	Log() esl.Logger

	// HTTP Capture logger
	Capture() esl.Logger

	// Workspace
	Workspace() app_workspace.Workspace

	// Message container
	Messages() app_msg_container.Container

	// Feature
	Feature() app_feature.Feature

	// Create new worker queue
	NewLegacyQueue() rc_worker.LegacyQueue

	// Create new queue definition
	NewQueue() eq_queue.Definition

	// Async queue sequence
	Sequence() eq_sequence.Sequence

	// Get or create new cache
	NewCache(namespace, name string) cache.Cache

	// Create new KVS. The caller must close the storage before exit.
	NewKvs(name string) (kvs kv_storage.Storage, err error)

	// Create new KVS factory. The caller must close the factory before exit.
	NewKvsFactory() (factory kv_storage.Factory)

	// Workspace bundle
	WorkBundle() app_workspace.Bundle

	// Fork control instance with feature
	WithFeature(feature app_feature.Feature) Control

	// Fork control instance with UI
	WithUI(ui app_ui.UI) Control

	// Fork control with lang
	WithLang(targetLang string) Control

	// Fork control with bundle
	WithBundle(wb app_workspace.Bundle) Control
}

type ControlCloser

type ControlCloser interface {
	Control

	Close()
}

Jump to

Keyboard shortcuts

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