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: 0

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