server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(config ServerConfig) int

Types

type Command

type Command struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, ui cli.Ui, logOutput io.Writer) *Command

New returns a new server command

func (*Command) Help

func (c *Command) Help() string

func (*Command) Run

func (c *Command) Run(args []string) int

func (*Command) Synopsis

func (c *Command) Synopsis() string

type ServerConfig

type ServerConfig struct {
	Context       context.Context
	Logger        hclog.Logger
	ConsulConfig  *api.Config
	K8sConfig     *k8s.Config
	ProfilingPort int
	MetricsPort   int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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