cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvNamespace namespace env variable name
	EnvNamespace = "NAMESPACE"
	// EnvDevMode enable dev mode
	EnvDevMode = "DEV_MODE"
	// EnvLeaderElectionResourceLock leader election release lock mode
	EnvLeaderElectionResourceLock = "LEADER_ELECTION_RESOURCE_LOCK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Main

type Main struct {
	Config     *bjcc.Config
	Controller lifecycle.Controller
	Manager    manager.Manager
	// contains filtered or unexported fields
}

Main struct

func Setup

func Setup() *Main

Setup setup main

func (*Main) CustomConfigString

func (m *Main) CustomConfigString(name string) string

CustomConfigString get a custom config value string

func (*Main) CustomConfigValue

func (m *Main) CustomConfigValue(name string) interface{}

CustomConfigValue get a custom config value

func (*Main) Start

func (m *Main) Start(runnables ...manager.Runnable)

Start start main

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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