app

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 39 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

Overview

Package app implements a server that runs a set of active components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerCommand

func NewControllerCommand() *cobra.Command

NewControllerCommand creates a *cobra.Command object with default parameters.

func Run

func Run(ctx context.Context, c *config.Config) error

Run runs the controller options. This should never exit.

Types

type ControllerContext

type ControllerContext struct {
	// Config provides access to init options for a given controller
	Config *config.Config

	RedisClient *redis.Client

	ControllerOptions controller.Options

	Store store.IStore
}

ControllerContext defines the context object for controller

func CreateControllerContext

func CreateControllerContext(
	ctx context.Context,
	c *config.Config,
	storeClient store.IStore,
	rdb *redis.Client,
	ctrlOptions ctrl.Options,
) (ControllerContext, error)

Directories

Path Synopsis
Package options provides the flags used for the blockchain controller.
Package options provides the flags used for the blockchain controller.

Jump to

Keyboard shortcuts

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