server

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 27 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
	ConsulClientConfig consul.ClientConfig
	K8sConfig          *k8s.Config
	ProfilingPort      int
	MetricsPort        int
	PrimaryDatacenter  string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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