Help us shape the future of Go! Take the 2026 Go Developer Survey

daemoncmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package daemoncmd constructs standalone daemon commands. Options, ServerOptions, NewCommand and Run are the designated reusable entry surface; release protection follows docs/design/enterprise-extension-contract.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(assembly Options) *cobra.Command

NewCommand creates fresh flags without dotenv or signal side effects.

func Run

func Run(opts Options) int

Run loads dotenv, executes the daemon and returns the original process exit code.

Types

type Options

type Options struct {
	Assembly distribution.Assembly
	Server   ServerOptions
}

Options contains public server configuration and distribution metadata.

type ServerOptions

type ServerOptions struct {
	Addr                     string
	AdminAddr                string
	ConfigStorePath          string
	StaticConfigPath         string
	ProviderTypes            []string
	CredentialRefreshCommand string
	CredentialRefreshArgs    []string
	AdminBasicAuthHash       string
	Metrics                  distribution.MetricsConfig
}

ServerOptions contains only public configuration values.

Jump to

Keyboard shortcuts

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