cli

package
v0.0.0-...-1e10b44 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: AGPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalFlags

func GlobalFlags() []cli.Flag

GlobalFlags are flags available to all commands (appear before subcommand)

func Init

func Init() *cli.Command

func Root

func Root() *cli.Command

func Server

func Server() *cli.Command

func SetVersionInfo

func SetVersionInfo(v, c, b string)

SetVersionInfo allows setting version info from main via ldflags

func Version

func Version() *cli.Command

Types

type ServerConfig

type ServerConfig struct {
	ConfigDir string `koanf:"-" default:"/etc/mithril.d"`
	DataDir   string `koanf:"-"`

	Cluster string            `koanf:"cluster"`
	Etcd    configetcd.Client `koanf:"etcd"`

	Health confighealth.Server `koanf:"health"`
	Log    configlog.Logger    `koanf:"log"`
	Node   struct {
		Advertise configadvertisement.AdvertisementConfig `koanf:"advertise"`
		GRPC      configgrpc.Server                       `koanf:"grpc"`
		Labels    map[string]string                       `koanf:"labels"`
		Peer      struct {
			GRPC configgrpc.Client `koanf:"grpc"`
		} `koanf:"peer"`
	} `koanf:",squash"`
	PProf   configpprof.Server `koanf:"pprof"`
	Volumes []struct {
		Labels map[string]string `koanf:"labels"`
	} `koanf:"volumes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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