cmd

package
v0.0.0-...-f4a484a Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: EUPL-1.2 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Types

type Context

type Context struct {
	Logger slog.Logger
}

type ServeCmd

type ServeCmd struct {
	Name                 string `env:"MK_NAME" required:"" name:"name" help:"Name of the service."`
	BackendListenAddress string `env:"MK_BACKEND_LISTEN_ADDRESS" default:":8080" name:"backend-listen-address" help:"Address to listen  on."`

	ConfigPath    string `env:"MK_CONFIG_PATH"  default:"../config/global.yaml" name:"config-path" help:"Location of the config"`
	FscConfigPath string `env:"MK_FSC_CONFIG_PATH" name:"fsc-config-path" help:"Location of the config"`
}

func (*ServeCmd) Run

func (opt *ServeCmd) Run(ctx *Context) error

Jump to

Keyboard shortcuts

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